crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
2e4d56cf
ROOT
/
go
/
store
/
nbs
/
root_tracker_test.go
Search
History
651 lines
|
ISO-8859-1
|
19 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
TestChunkStoreZeroValue
(t *testing.T)
TestChunkStoreVersion
(t *testing.T)
TestChunkStoreRebase
(t *testing.T)
TestChunkStoreCommit
(t *testing.T)
TestChunkStoreManifestAppearsAfterConstruction
(t *testing.T)
TestChunkStoreManifestFirstWriteByOtherProcess
(t *testing.T)
TestChunkStoreCommitOptimisticLockFail
(t *testing.T)
TestChunkStoreManifestPreemptiveOptimisticLockFail
(t *testing.T)
TestChunkStoreCommitLocksOutFetch
(t *testing.T)
TestChunkStoreSerializeCommits
(t *testing.T)
makeStoreWithFakes
(t *testing.T)
:
(fm *fakeManifest, p tablePersister, q MemoryQuotaProvider, store *NomsBlockStore)
interloperWrite
(fm *fakeManifest, p tablePersister, rootChunk []byte, chunks ...[]byte)
:
(newRoot hash.Hash, persisted [][]byte, err error)
createMemTable
(chunks [][]byte)
:
*memTable
assertDataInStore
(slices [][]byte, store chunks.ChunkStore, assert *assert.Assertions)
fakeManifest
name
:
string
contents
:
manifestContents
mu
:
sync.RWMutex
newFakeTableSet
(q MemoryQuotaProvider)
:
tableSet
newFakeTablePersister
(q MemoryQuotaProvider)
:
fakeTablePersister
fakeTablePersister
q
:
MemoryQuotaProvider
sources
:
map[addr][]byte
sourcesToFail
:
map[addr]bool
opened
:
map[addr]bool
mu
:
*sync.RWMutex
Persist
(ctx context.Context, mt *memTable, haver chunkReader, stats *Stats)
:
(chunkSource, error)
ConjoinAll
(ctx context.Context, sources chunkSources, stats *Stats)
:
(chunkSource, error)
Open
(ctx context.Context, name addr, chunkCount uint32, stats *Stats)
:
(chunkSource, error)
PruneTableFiles
(_ context.Context, _ manifestContents)
:
error
_
:
tablePersister
compactSourcesToBuffer
(sources chunkSources)
:
(name addr, data []byte, chunkCount uint32, err error)
extractAllChunks
(ctx context.Context, src chunkSource, cb func(rec extractRecord))
:
(err error)
*fakeManifest
Name
()
:
string
ParseIfExists
(ctx context.Context, stats *Stats, readHook func() error)
:
(bool, manifestContents, error)
Update
(ctx context.Context, lastLock addr, newContents manifestContents, stats *Stats, writeHook func() error)
:
(manifestContents, error)
set
(version string, lock addr, root hash.Hash, specs, appendix []tableSpec)
All occurrences
Please wait...
Page is in error, reload to recover