Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Typo in local_diskstore #380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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