Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions diskstore/local_diskstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ func (l LocalDiskStore) ListSnapshotVectorPartyFiles(table string, shard int,
redoLogFile int64, offset uint32, batchID int) (columnIDs []int, err error) {
snapshotBatchDir := GetPathForTableSnapshotBatchDir(l.rootPath, table, shard,
redoLogFile, offset, batchID)
return l.readVectoryPartyFiles(snapshotBatchDir)
return l.readVectorPartyFiles(snapshotBatchDir)
}

func (l LocalDiskStore) readVectoryPartyFiles(dir string) (columnIDs []int, err error) {
func (l LocalDiskStore) readVectorPartyFiles(dir string) (columnIDs []int, err error) {
vpFiles, err := ioutil.ReadDir(dir)

if os.IsNotExist(err) {
Expand Down Expand Up @@ -289,7 +289,7 @@ func (l LocalDiskStore) ListArchiveBatchVectorPartyFiles(table string, shard, ba
batchVersion uint32, seqNum uint32) ([]int, error) {
batchIDTimeStr := daysSinceEpochToTimeStr(batchID)
tableArchiveBatchDir := GetPathForTableArchiveBatchDir(l.rootPath, table, shard, batchIDTimeStr, batchVersion, seqNum)
return l.readVectoryPartyFiles(tableArchiveBatchDir)
return l.readVectorPartyFiles(tableArchiveBatchDir)
}

// OpenVectorPartyFileForRead : Opens the vector party file at the specified batchVersion for read.
Expand Down