Skip to content

Commit 3d5013b

Browse files
committed
Introduce schema versioning
We introduce an `enum VssSchemaVersion` that will allow us to discern different behaviors based on the schema version based on a backwards compatible manner.
1 parent be3cb48 commit 3d5013b

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
@@ -45,6 +45,13 @@ type CustomRetryPolicy = FilteredRetryPolicy<
4545
Box<dyn Fn(&VssError) -> bool + 'static + Send + Sync>,
4646
>;
4747

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

0 commit comments

Comments
 (0)