Skip to content

Commit

Permalink
Add partitions to watcher upon restoring the core
Browse files Browse the repository at this point in the history
  • Loading branch information
M. Mert Yildiran committed Oct 27, 2021
1 parent 281bcb7 commit f78726f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ func restoreCore() {
paritition, err := os.OpenFile(partitionPath, os.O_CREATE|os.O_WRONLY, 0644)
check(err)
cs.partitions = append(cs.partitions, paritition)

err = watcher.Add(paritition.Name())
check(err)
}
cs.partitionIndex = csExport.PartitionIndex
cs.partitionSizeLimit = csExport.PartitionSizeLimit
Expand Down
2 changes: 1 addition & 1 deletion todo.todo
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- [x] Handle escapes in strings. Example: `"\"hello world\";v=\"42\", "`
- [x] Add `limit` helper to the query language
- [x] Stream metadata from server in `QUERY` mode to inform client about the progress
- [] Add `-persistent` option and implement persistent storage
- [x] Add `-persistent` option and implement persistent storage
- [] Write a client library for Python
- [] Implement mechanisms to reduce data redundancy
- [] Improve the querying speed by tracking checksums of strings

0 comments on commit f78726f

Please sign in to comment.