MCPcopy Create free account

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

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

↓ 7 callersMethodBatchDeleteKV
(keys [][]byte)
pkg/kvdrivers/suite_test.go:35
↓ 7 callersMethodBatchDeleteRows
(rowKeys [][]byte)
pkg/kvdrivers/suite_test.go:40
↓ 7 callersMethodCount
()
pkg/raftcluster/cluster_test.go:39
↓ 7 callersMethodDeleteColumnsForRow
(rowKey []byte, columnEntries map[string][]byte)
internal/services/fuzzer/fuzz_engine.go:22
↓ 7 callersFunctionDeserializeLogRecord
(data []byte)
internal/logcodec/codec.go:72
↓ 7 callersMethodGetLastModifiedAt
GetLastModifiedAt returns the last modified time of the segment.
pkg/walfs/segment.go:1112
↓ 7 callersMethodHlc
()
schemas/logrecord/LogRecord.go:56
↓ 7 callersMethodLenSlow
LenSlow returns the total number of entries by summing all shards.
pkg/walfs/sharded_index.go:211
↓ 7 callersMethodLogIndex
LogIndex returns the shared sharded index mapping log index to record position.
pkg/walfs/walog.go:635
↓ 7 callersMethodLsn
()
internal/benchtests/serialization/logrecord/LogRecord.go:44
↓ 7 callersMethodMarkForDeletion
MarkForDeletion marks the segment as candidate for deletion. If no active readers, it will immediately call cleanup. Otherwise, cleanup will be deferr
pkg/walfs/segment.go:1180
↓ 7 callersMethodMarshalBinary
Format: [RecordProcessed:8][Pos:12][RaftIndex:8][RaftTerm:8] = 36 bytes.
dbkernel/internal/metadata.go:64
↓ 7 callersFunctionNewService
NewService creates a new HTTP API service.
internal/services/httpapi/service.go:56
↓ 7 callersFunctionNewWalStreamerServiceClient
(cc grpc.ClientConnInterface)
schemas/proto/gen/go/unisondb/streamer/v1/streamer_grpc.pb.go:40
↓ 7 callersMethodRead
([]byte)
internal/services/httpapi/transactions_test.go:497
↓ 7 callersMethodRegisterRoutes
RegisterRoutes registers all HTTP API routes with the given router.
internal/services/httpapi/service.go:83
↓ 7 callersMethodSealedMemTableCount
SealedMemTableCount returns the current number of sealed memtables.
dbkernel/engine_public.go:215
↓ 7 callersMethodSetup
(ctx context.Context, deps *Dependencies)
cmd/unisondb/cliapp/service_raft.go:89
↓ 7 callersMethodSnapshot
(w io.Writer)
dbkernel/internal/common.go:55
↓ 7 callersMethodSnapshot
()
internal/services/fuzzer/stats.go:85
↓ 7 callersMethodString
()
internal/keycodec/keycodec.go:46
↓ 7 callersMethodTxnState
()
schemas/logrecord/LogRecord.go:92
↓ 7 callersMethodValue
(j int)
schemas/logrecord/ColumnData.go:52
↓ 7 callersMethodWaitForAppendOrDone
WaitForAppendOrDone blocks until a put/delete operation occurs or context cancelled is done.
dbkernel/engine_public.go:323
↓ 7 callersFunctionWithMSyncEveryWrite
WithMSyncEveryWrite enables msync() after every write operation.
pkg/walfs/walog.go:83
↓ 7 callersMethodWrite
Write writes data to the connection. On the first call, it writes the namespace header before the data.
pkg/raftmux/conn.go:34
↓ 7 callersMethodWriteBatch
WriteBatch applies rate limiting before delegating to the underlying WalIO batch write.
internal/services/relayer/relayer.go:134
↓ 7 callersFunctiongetReader
(en *dbkernel.Engine, lastOffset *dbkernel.Offset)
dbkernel/replica_test.go:471
↓ 7 callersFunctionnewBenchStore
(b *testing.B, opts ...walfs.WALogOptions)
pkg/raftwalfs/log_store_benchmark_test.go:27
↓ 7 callersFunctionnewRaftWalCleanupPredicate
(wlog *walfs.WALog, getFlushedIndex func() uint64)
dbkernel/engine.go:260
↓ 7 callersFunctionpeerAddress
(ctx context.Context)
internal/grpcutils/util.go:116
↓ 6 callersMethodApplyRecords
ApplyRecords validates and applies multiple WAL records in batch to the mem table. This is more efficient than calling ApplyRecord multiple times as i
dbkernel/replica.go:145
↓ 6 callersMethodBatchDeleteRows
(rowKeys [][]byte)
dbkernel/internal/common.go:37
↓ 6 callersMethodBtreeSnapshot
BtreeSnapshot returns the snapshot of the current btree store.
dbkernel/engine_public.go:106
↓ 6 callersMethodDecode
Decode decodes a Raft WAL entry and returns the inner payload (raft.Log.Data). For non-command log types (Noop, Barrier, Configuration), returns a Raf
dbkernel/internal/wal/raft_decoder.go:48
↓ 6 callersMethodDeleteKV
(key []byte)
dbkernel/internal/common.go:29
↓ 6 callersFunctionGetNamespace
(ctx context.Context)
internal/grpcutils/util.go:47
↓ 6 callersMethodHasAny
HasAny returns true if there is at least one active reader across all shards.
pkg/walfs/util.go:67
↓ 6 callersMethodKeyBytes
()
internal/benchtests/serialization/logrecord/KeyValueEntry.go:61
↓ 6 callersFunctionNewRaftWALDecoder
NewRaftWALDecoder creates a RaftWALDecoder with the given codec. If codec is nil, BinaryCodecV1{} is used as default.
dbkernel/internal/wal/raft_decoder.go:38
↓ 6 callersMethodNewTxnQueue
NewTxnQueue returns an initialized LMDBTxnQueue for Batch API queuing and commit.
pkg/kvdrivers/lmdb_txn_queue.go:34
↓ 6 callersFunctionNewWalRecovery
NewWalRecovery creates and returns a new initialized instance of WalRecovery.
dbkernel/internal/recovery/wal_recovery.go:20
↓ 6 callersMethodRecover
Recover restores WAL entries starting from the provided checkpoint.
dbkernel/internal/recovery/wal_recovery.go:44
↓ 6 callersMethodRemoveServer
RemoveServer removes a server from Raft if it exists in the latest configuration. This must be run on the leader or it will fail.
pkg/raftcluster/cluster.go:302
↓ 6 callersFunctionRunLoop
RunLoop executes a long-running retry loop with backoff and budgeting.
internal/services/relayer/retry.go:97
↓ 6 callersFunctionSegmentFileName
SegmentFileName returns the file name of a Segment file.
pkg/walfs/segment.go:1326
↓ 6 callersMethodSegmentRotatedCount
()
pkg/walfs/walog.go:583
↓ 6 callersFunctionSerializeEventEntry
SerializeEventEntry encodes an EventEntry into FlatBuffers.
internal/logcodec/event_codec.go:9
↓ 6 callersMethodSetKV
(key []byte, value []byte)
pkg/kvdrivers/api.go:12
↓ 6 callersMethodSetLobChunks
(key []byte, chunks [][]byte, checksum uint32)
pkg/kvdrivers/suite_test.go:36
↓ 6 callersMethodSyncDir
(dir string)
pkg/walfs/walog.go:55
↓ 6 callersMethodValueBytes
()
internal/benchtests/serialization/logrecord/ColumnData.go:69
↓ 6 callersMethodWAL
WAL returns the underlying walfs.WALog for this engine. In Raft mode, this WAL is shared with the Raft log store. The WAL must be created with RaftMod
dbkernel/engine_raft.go:424
↓ 6 callersFunctionWriteHeader
Format: [version:1][length:1][namespace:N].
pkg/raftmux/protocol.go:20
↓ 6 callersFunctionacquireLock
acquireLock attempts to acquire an exclusive lock on the namespace. this is in same path as our dbkernel pid.lock to prevent server start. if dbkernel
internal/udbctl/restore/restore.go:27
↓ 6 callersFunctionacquireWalRecord
()
pkg/replicator/pool.go:15
↓ 6 callersMethodbuildRaftConfig
(cfg config.RaftConfig)
cmd/unisondb/cliapp/service_raft.go:367
↓ 6 callersFunctioncalculateMaxEntries
(dataSize int)
pkg/walfs/segment_benchmark_test.go:32
↓ 6 callersFunctionconfigureSerfEncryption
(conf *memberlist.Config, cfg MembershipConfiguration)
pkg/raftcluster/membership.go:423
↓ 6 callersFunctionformatLatencyMs
(value float64, decimals int)
bench/client/main.go:350
↓ 6 callersFunctionformatSize
(size int)
internal/benchtests/serialization/bench_test.go:586
↓ 6 callersFunctiongenerateLargeRandomBytes
generateLargeRandomBytes returns random bytes of given size.
internal/benchtests/serialization/bench_test.go:382
↓ 6 callersFunctiongetDeadline
(ctx context.Context)
internal/grpcutils/util.go:123
↓ 6 callersFunctionhumanizeDuration
(d time.Duration)
internal/grpcutils/stats_handler.go:336
↓ 6 callersFunctionhumanizeDuration
(d float64)
internal/benchtests/cmd/genclient/main.go:101
↓ 6 callersMethodlastWrittenLSN
(ctx context.Context, namespace string)
cmd/unisondb/cliapp/service_blob_store_streamer.go:281
↓ 6 callersFunctionmustBenchEngine
(tb testing.TB, ns string)
dbkernel/z_bench_test.go:13
↓ 6 callersFunctionnewMemoryPartitionLog
(t *testing.T)
internal/services/streamer/blob_store_streamer_test.go:374
↓ 6 callersFunctionnewTestLogger
(buf *bytes.Buffer, percent map[slog.Level]float64, min slog.Level)
pkg/logutil/percentage_logger_test.go:12
↓ 6 callersMethodnotifyAppend
()
dbkernel/engine.go:676
↓ 6 callersFunctionparseFullMethodName
https://opentelemetry.io/docs/specs/semconv/rpc/rpc-spans/
internal/grpcutils/stats_handler.go:207
↓ 6 callersMethodpersistRowColumnAction
persistRowColumnAction writes the columnEntries for the given rowKey in the wal and mem-table.
dbkernel/engine.go:583
↓ 6 callersFunctionportFromAddr
(addr net.Addr)
pkg/raftmux/manager_test.go:318
↓ 6 callersMethodrecomputeBounds
()
pkg/walfs/walog.go:650
↓ 6 callersFunctionsetupLogger
()
internal/grpcutils/stateful_interceptor_test.go:22
↓ 6 callersFunctionsetupRaftApplyTestEngine
(t *testing.T)
dbkernel/engine_raft_test.go:224
↓ 6 callersFunctionsetupTestDB
(t *testing.T)
pkg/kvdrivers/bolt_test.go:16
↓ 5 callersMethodAbort
()
dbkernel/txn.go:61
↓ 5 callersMethodAddServer
AddServer will add the given server to the cluster as a staging server.
pkg/raftcluster/cluster.go:342
↓ 5 callersMethodAppendChunk
(key, chunkData []byte)
dbkernel/raft_txn.go:147
↓ 5 callersMethodApplyBatch
ApplyBatch implements raft.BatchingFSM.
dbkernel/engine_raft.go:305
↓ 5 callersMethodBatchDeleteKV
(keys [][]byte)
dbkernel/internal/common.go:30
↓ 5 callersMethodBatchDeleteLobChunks
(keys [][]byte)
pkg/kvdrivers/suite_test.go:37
↓ 5 callersFunctionBuildColumnMap
BuildColumnMap builds the columns from the provided mem-table entries. it modifies the provided columnEntries with the entries fetched from mem table.
dbkernel/internal/memtable/utils.go:29
↓ 5 callersMethodCurrentWalIO
CurrentWalIO returns the currently configured WalIO implementation for the Relayer. nolint:ireturn
internal/services/relayer/relayer.go:250
↓ 5 callersMethodDecode
Decode deserializes a raft.Log.
pkg/raftwalfs/codec.go:96
↓ 5 callersMethodDeleteRow
DeleteRow removes an entire row and all its associated column entries.
dbkernel/engine_public.go:543
↓ 5 callersMethodDialNamespace
(addr, namespace string, timeout time.Duration)
pkg/raftmux/manager.go:199
↓ 5 callersMethodEnableRateLimitedWalIO
EnableRateLimitedWalIO configures the Relayer to apply a token bucket rate limiter on WAL writes. This helps control replication throughput and preven
internal/services/relayer/relayer.go:259
↓ 5 callersMethodFSync
()
dbkernel/internal/common.go:40
↓ 5 callersMethodGetLSN
GetLSN reads the LSN from a LogRecord FlatBuffer.
pkg/raftwalfs/data_mutator.go:45
↓ 5 callersFunctionGetStats
(walDir string)
internal/udbctl/wal/wal.go:93
↓ 5 callersMethodInit
(buf []byte, i flatbuffers.UOffsetT)
schemas/logrecord/LogRecord.go:35
↓ 5 callersFunctionInspectSegment
(walDir string, segmentID uint32, showIndex bool)
internal/udbctl/wal/wal.go:53
↓ 5 callersMethodIsClosed
()
pkg/raftmux/conn_test.go:60
↓ 5 callersMethodIsRaftMode
IsRaftMode returns true if the Engine is operating in Raft mode.
dbkernel/engine_raft.go:411
↓ 5 callersFunctionListSegments
(walDir string)
internal/udbctl/wal/wal.go:17
↓ 5 callersMethodMSync
()
pkg/walfs/segment.go:1043
↓ 5 callersMethodNamespaceCount
()
pkg/raftmux/manager.go:421
↓ 5 callersFunctionNewCluster
NewCluster creates a cluster with the given Raft instance, local server ID, and namespace.
pkg/raftcluster/cluster.go:65
← previousnext →301–400 of 3,181, ranked by callers