Skip to content

Commit 1e96dc9

Browse files
committed
Introduce schema versioning
We introuce an `enum VssSchemaVersion` that will allow us to discern differnent behaviors based on the schema version based on a backwards compatible manner.
1 parent cef82e4 commit 1e96dc9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/io/vss_store.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ type CustomRetryPolicy = FilteredRetryPolicy<
4444
Box<dyn Fn(&VssError) -> bool + 'static + Send + Sync>,
4545
>;
4646

47+
enum VssSchemaVersion {
48+
// The initial schema version.
49+
// This used an empty `aad` and unobfuscated `primary_namespace`/`secondary_namespace`s in the
50+
// stored key.
51+
V0,
52+
}
53+
4754
// We set this to a small number of threads that would still allow to make some progress if one
4855
// would hit a blocking case
4956
const INTERNAL_RUNTIME_WORKERS: usize = 2;

0 commit comments

Comments
 (0)