MCPcopy Create free account

hub / github.com/ankur-anand/unisondb / functions

Functions3,181 in github.com/ankur-anand/unisondb

↓ 11 callersFunctionNewStatefulInterceptor
NewStatefulInterceptor returns an initialized Interceptor.
internal/grpcutils/stateful_interceptor.go:39
↓ 11 callersMethodPrevTxnWalIndexBytes
()
schemas/logrecord/LogRecord.go:167
↓ 11 callersMethodRetrieveMetadata
(key []byte)
dbkernel/internal/common.go:54
↓ 11 callersMethodSetBatch
SetBatch stores multiple index→position mappings.
pkg/walfs/sharded_index.go:146
↓ 11 callersMethodSetupStorageConfig
(ctx context.Context)
cmd/unisondb/cliapp/server.go:187
↓ 11 callersMethodValue
(j int)
internal/benchtests/serialization/logrecord/ColumnData.go:52
↓ 10 callersMethodAppendColumnTxn
AppendColumnTxn appends the Columns update type Txn to wal for the provided rowKey. Update/DeleteKV Ops for column is decided by the Log Operation typ
dbkernel/txn.go:211
↓ 10 callersMethodContext
()
internal/services/streamer/grpc_streamer_test.go:671
↓ 10 callersMethodDeleteRange
DeleteRange deletes logs in [min, max] inclusive. Supports two scenarios required by Raft: 1. PREFIX deletion: Log compaction after snapshot (min=fir
pkg/raftwalfs/log_store.go:262
↓ 10 callersMethodFlushedIndex
FlushedIndex returns the last Raft log index flushed to B-tree.
dbkernel/engine_raft.go:401
↓ 10 callersMethodGetBounds
GetBounds returns the first and last available log indices. Returns (0, 0) when no indexed entries exist.
pkg/walfs/walog.go:641
↓ 10 callersMethodGetLOBChunks
(key []byte)
pkg/kvdrivers/suite_test.go:49
↓ 10 callersMethodLeaderWithID
LeaderWithID returns the address and ID of the current leader.
pkg/raftcluster/cluster.go:95
↓ 10 callersFunctionNewGrpcStreamer
NewGrpcStreamer returns an initialized GrpcStreamer that implements grpc-based WalStreamerService.
internal/services/streamer/grpc_streamer.go:49
↓ 10 callersFunctionNewOutboundConn
NewOutboundConn creates a new OutboundConn that will write the namespace header on the first Write() call.
pkg/raftmux/conn.go:20
↓ 10 callersFunctionNewReplicator
NewReplicator returns an initialized Replicator that uses LSN-based replication.
pkg/replicator/replicator.go:48
↓ 10 callersMethodQueuedSegmentsForDeletion
()
pkg/walfs/walog.go:1192
↓ 10 callersMethodRegisterCluster
RegisterCluster adds a ClusterDiscover listener that will receive membership events. This allows multiple Raft clusters (one per namespace) to react t
pkg/raftcluster/membership.go:119
↓ 10 callersFunctionRegisterWalStreamerServiceServer
(s grpc.ServiceRegistrar, srv WalStreamerServiceServer)
schemas/proto/gen/go/unisondb/streamer/v1/streamer_grpc.pb.go:107
↓ 10 callersFunctionRestore
Restore performs a full restore operation based on the provided options. It holds an exclusive lock during the entire operation to prevent the server
internal/udbctl/restore/restore.go:178
↓ 10 callersMethodScanRowCells
(rowKey []byte, filter func(columnKey []byte) bool)
dbkernel/internal/common.go:49
↓ 10 callersFunctionWithClearIndexOnFlush
WithClearIndexOnFlush enables clearing segment's in-memory index after it's flushed to disk. This is useful when an external index is maintained.
pkg/walfs/walog.go:133
↓ 10 callersFunctionbufDialer
(lis *bufconn.Listener)
internal/services/streamer/grpc_streamer_test.go:75
↓ 10 callersFunctionnewMockConn
()
pkg/raftmux/conn_test.go:22
↓ 10 callersMethodsetFsyncCallback
(fn func())
dbkernel/engine.go:1048
↓ 9 callersFunctionAutoScope
AutoScope returns a tally.Scope scoped by the caller's package name.
pkg/umetrics/auto_scope.go:52
↓ 9 callersMethodBatchAppend
BatchAppend writes multiple records to the active WAL segment in a single batch operation. This is more efficient than calling Append multiple times a
dbkernel/internal/wal/wal.go:246
↓ 9 callersMethodCommit
()
dbkernel/txn.go:60
↓ 9 callersMethodDeleteRange
DeleteRange deletes a range of log entries, but limits the max to the safe-to-GC index to preserve logs needed for pending segment processing.
dbkernel/safe_gc_log_store.go:85
↓ 9 callersFunctionDeserializeRowUpdateEntry
DeserializeRowUpdateEntry decodes a FlatBuffer-encoded RowUpdateEntry.
internal/logcodec/row_codec.go:42
↓ 9 callersMethodEncode
Encode serializes a raft.Log into a pre-sized buffer.
pkg/raftwalfs/codec.go:48
↓ 9 callersMethodGetLatestLSN
GetLatestLSN reads the latest committed LSN from partitionlog catalog head.
internal/services/streamer/blob_store_streamer_client.go:64
↓ 9 callersMethodIsCurrentEntry
IsCurrentEntry checks if the given position is the current one for an index. Returns true if the index exists and the position matches exactly.
pkg/walfs/sharded_index.go:197
↓ 9 callersMethodIsLeader
()
pkg/raftcluster/cluster.go:90
↓ 9 callersMethodIsLeader
(namespace string)
cmd/unisondb/cliapp/service_raft.go:598
↓ 9 callersMethodLocalAddr
()
pkg/raftmux/conn.go:53
↓ 9 callersMethodMarkSegmentsForDeletion
MarkSegmentsForDeletion identifies and queues WAL segments for deletion based on their age and segment count retention constraints.
pkg/walfs/walog.go:1120
↓ 9 callersFunctionNewGrpcStreamerClient
(gcc *grpc.ClientConn, namespace string, wIO WalIO, startLSN uint64)
internal/services/streamer/grpc_streamer_client.go:42
↓ 9 callersMethodNewReaderWithStart
NewReaderWithStart returns a new Reader that begins reading from the specified position. If SegmentID is 0, the reader will begin from the very start
pkg/walfs/walog.go:1414
↓ 9 callersFunctionNewSafeGCLogStore
NewSafeGCLogStore creates a new SafeGCLogStore wrapping the given LogStore. The provider supplies the safe-to-GC index (typically FlushedIndexHolder o
dbkernel/safe_gc_log_store.go:51
↓ 9 callersFunctionParseKeyKind
ParseKeyKind returns the KeyKind associated with the key.
pkg/kvdrivers/util.go:29
↓ 9 callersFunctionReadHeader
ReadHeader reads the namespace header from r. Returns the namespace string or an error.
pkg/raftmux/protocol.go:39
↓ 9 callersMethodReconcileMembers
([]MemberInformation)
pkg/raftcluster/api.go:9
↓ 9 callersMethodRestore
(r io.Reader)
dbkernel/internal/common.go:41
↓ 9 callersMethodSet
Set stores the safe-to-GC index.
dbkernel/safe_gc_log_store.go:34
↓ 9 callersMethodSetKV
(key []byte, value []byte)
pkg/kvdrivers/suite_test.go:20
↓ 9 callersMethodStreamNamespace
StreamNamespace starts replicating WAL records for the given namespace into object storage. It blocks until the context is cancelled or the streamer i
internal/services/streamer/blob_store_steamer.go:128
↓ 9 callersMethodStreamWalRecords
(ctx context.Context, in *StreamWalRecordsRequest, opts ...grpc.CallOption)
schemas/proto/gen/go/unisondb/streamer/v1/streamer_grpc.pb.go:32
↓ 9 callersFunctionUnmarshalMetadata
Format: [RecordProcessed:8][Pos:12][RaftIndex:8][RaftTerm:8] = 36 bytes.
dbkernel/internal/metadata.go:80
↓ 9 callersFunctionWithAutoCleanupPolicy
WithAutoCleanupPolicy configures the automatic segment cleanup policy for the WAL. maxAge: Segments older than this duration are eligible for deletion
pkg/walfs/walog.go:104
↓ 9 callersFunctiondecodeBase64
(t *testing.T, data string)
internal/services/httpapi/service_test.go:105
↓ 9 callersFunctionfile_kv_proto_rawDescGZIP
()
internal/benchtests/serialization/kv.pb.go:643
↓ 9 callersFunctionformatCountSI
(value float64, decimals int)
bench/client/main.go:342
↓ 9 callersFunctionhumanizeDuration
(d time.Duration)
bench/client/main.go:357
↓ 9 callersFunctionsetupMemTableWithLMDB
(t *testing.T, capacity int64)
dbkernel/internal/memtable/memtable_test.go:28
↓ 9 callersFunctionsetupReadOnlyTestServer
(t *testing.T)
internal/services/httpapi/service_test.go:1381
↓ 9 callersFunctiontoBytes
(s string)
pkg/kvdrivers/util_test.go:13
↓ 9 callersFunctiontoBytes
(s string)
internal/keycodec/keycodec_test.go:12
↓ 9 callersFunctionwriteJSON
(w http.ResponseWriter, statusCode int, payload interface{})
cmd/unisondb/cliapp/service_http.go:284
↓ 9 callersMethodwriteNilOffset
()
dbkernel/engine.go:709
↓ 8 callersMethodAbort
()
dbkernel/raft_txn.go:228
↓ 8 callersMethodAppendKVTxn
(key []byte, value []byte)
dbkernel/txn.go:58
↓ 8 callersMethodBatchDeleteCells
(rowKeys [][]byte, columnEntriesPerRow []map[string][]byte)
pkg/kvdrivers/suite_test.go:39
↓ 8 callersMethodChecksum
()
dbkernel/txn.go:365
↓ 8 callersMethodCommit
Commit advances the committed position to the given position. When readerCommitCheck is enabled, readers cannot advance beyond this position. In Raft
pkg/walfs/walog.go:391
↓ 8 callersFunctionDefaultBlobStoreStreamerConfig
DefaultBlobStoreStreamerConfig returns defaults for partitionlog-backed blob streaming.
internal/services/streamer/blob_store_steamer.go:76
↓ 8 callersMethodEnqueue
Enqueue adds an inbound connection to the accept queue. Returns false if the stream layer is closed or the queue is full.
pkg/raftmux/stream_layer.go:77
↓ 8 callersMethodGetKV
(key []byte)
pkg/kvdrivers/api.go:21
↓ 8 callersMethodGetLOBChunks
(key []byte)
dbkernel/internal/common.go:47
↓ 8 callersMethodGetSegmentSize
()
pkg/walfs/segment.go:1150
↓ 8 callersMethodHasActiveReaders
HasActiveReaders returns true if there are any currently active readers on the segment.
pkg/walfs/segment.go:1100
↓ 8 callersMethodIntn
(n int)
pkg/walfs/segment_benchmark_test.go:24
↓ 8 callersMethodLastRecoveredOffset
()
dbkernel/internal/recovery/wal_recovery.go:35
↓ 8 callersFunctionNewFuzzStats
()
internal/services/fuzzer/stats.go:43
↓ 8 callersFunctionNewRateLimitedWalIO
NewRateLimitedWalIO constructs a RateLimitedWalIO.
internal/services/relayer/relayer.go:110
↓ 8 callersMethodNewTransaction
NewTransaction returns a transaction implementation based on the current engine mode. In Raft mode, it returns a Raft-backed transaction; otherwise it
dbkernel/txn.go:67
↓ 8 callersFunctionParseKeyKind
ParseKeyKind returns the KeyKind associated with the key.
internal/keycodec/keycodec.go:28
↓ 8 callersMethodRange
Range iterates over all entries and calls fn for each. If fn returns false, iteration stops.
pkg/walfs/sharded_index.go:239
↓ 8 callersMethodReplicate
Replicate reads wal record from the underlying engine, and sends the WalRecords when batchSize/maxBatchDuration is reached.
pkg/replicator/replicator.go:64
↓ 8 callersFunctionRestoreWAL
(backupDir, dataDir, namespace string)
internal/udbctl/restore/restore.go:73
↓ 8 callersMethodSetWALCommitCallback
SetWALCommitCallback sets the callback that is invoked when a committed Raft entry is applied. The callback receives the WAL position of the committed
dbkernel/engine_raft.go:70
↓ 8 callersMethodStats
()
plugin/notifier/zeromq/zeromq.go:187
↓ 8 callersMethodStoreLog
(log *raft.Log)
dbkernel/safe_gc_log_store_test.go:43
↓ 8 callersFunctionWithBytesPerSync
WithBytesPerSync sets the threshold in bytes after which a msync is triggered. Useful for batching writes. 0 disable this feature.
pkg/walfs/walog.go:76
↓ 8 callersFunctionbenchLog
(idx, term uint64, payload []byte)
pkg/raftwalfs/log_store_benchmark_test.go:18
↓ 8 callersMethoddoJSON
(method, path string, reqBody any, respBody any)
internal/services/fuzzer/http_engine.go:143
↓ 8 callersMethodflushBatch
()
pkg/kvdrivers/bolt_txn_queue.go:321
↓ 8 callersMethodflushBatch
()
pkg/kvdrivers/lmdb_txn_queue.go:342
↓ 8 callersMethodgetTransaction
(txnID string)
internal/services/httpapi/service.go:120
↓ 8 callersFunctionmakeRaftLog
(index uint64, record logcodec.LogRecord)
dbkernel/engine_raft_test.go:252
↓ 8 callersFunctionmembersFromConfig
(cfg *raft.Configuration, namespace string)
pkg/raftcluster/cluster_test.go:166
↓ 8 callersFunctionnewMockLogStore
()
dbkernel/safe_gc_log_store_test.go:21
↓ 8 callersMethodpersistKeyValue
persistKeyValue writes a key-value pair to WAL and MemTable, ensuring durability. multistep process to persist the key-value pair: 1. Encodes the reco
dbkernel/engine.go:503
↓ 8 callersFunctionrequireKVValue
(t *testing.T, engine *Engine, key, expected []byte)
dbkernel/raft_txn_test.go:85
↓ 8 callersFunctionsetupWalTest
(t *testing.T)
dbkernel/internal/wal/wal_test.go:21
↓ 8 callersFunctionsimulateWALIO
()
internal/benchtests/broadcast/main.go:21
↓ 8 callersMethodsnapshotSegments
()
pkg/walfs/walog.go:357
↓ 8 callersFunctionwriteJSONError
(w http.ResponseWriter, statusCode int, message string)
cmd/unisondb/cliapp/service_http.go:295
↓ 7 callersMethodAddr
()
cmd/unisondb/cliapp/service_http.go:118
↓ 7 callersMethodBackupSegmentsAfter
BackupSegmentsAfter copies every sealed segment with ID > afterID into backupDir. Returns a map of SegmentID to the backup file path.
pkg/walfs/walog.go:977
← previousnext →201–300 of 3,181, ranked by callers