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

PR 620 follow-up: tweaks in comments #623

Merged
merged 1 commit into from
Feb 2, 2024
Merged
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
3 changes: 2 additions & 1 deletion storage/oasis/nodeapi/file/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func glob(patterns []string, antipatterns []string) ([]string, error) {
}

// Moves all files that match the src glob patterns to the destination directory.
// NOTE: If multiple source files have the same filename, one will clobber the others when moved!
pro-wh marked this conversation as resolved.
Show resolved Hide resolved
func moveFiles(srcPatterns []string, srcAntipatters []string, dst string) error {
files, err := glob(srcPatterns, srcAntipatters)
if err != nil {
Expand Down Expand Up @@ -161,7 +162,7 @@ func deleteFiles(pattern string) error {
}

// Gets rid of excessively backed-up pogreb index files.
// If we know pogreb will reindex, delete or possibl .
// If we know pogreb will reindex, this deletes or possibly backs up the old index files.
func (s *pogrebKVStore) preBackup() {
backupNeeded := pathExists(filepath.Join(s.path, "lock"))
backupDir := filepath.Join(filepath.Dir(s.path), filepath.Base(s.path)+".backup")
Expand Down
Loading