-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase V-Hash Size from 32 Bit to 64 Bit
In case we have 1 million different identifiers, we will have v-hash collisions. So we have to increase the v-hash size from 32 bit to 64 bit.
- Loading branch information
1 parent
26e13b7
commit d10bd32
Showing
9 changed files
with
111 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
(ns blaze.db.node.version-spec | ||
(:require | ||
[blaze.db.kv.spec] | ||
[blaze.db.node.version :as version] | ||
[clojure.spec.alpha :as s])) | ||
|
||
|
||
(s/fdef version/encode-value | ||
:args (s/cat :version nat-int?) | ||
:ret bytes?) | ||
|
||
|
||
(s/fdef version/get | ||
:args (s/cat :store :blaze.db/kv-store) | ||
:ret (s/nilable nat-int?)) | ||
|
||
|
||
(s/fdef version/set! | ||
:args (s/cat :store :blaze.db/kv-store :version nat-int?)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters