Skip to content

Commit 03aaedd

Browse files
firewalldb: clarify bbolt kvstores illustration
During the migration of the kvstores to SQL, we'll iterate over the buckets in the bbolt database, which holds all kvstores records. In order to understand why the migration iterates over the buckets in the specific order, we need to clarify the bbolt kvstores illustration docs, so that it correctly reflects how the records are actually stored in the bbolt database.
1 parent bcc37d3 commit 03aaedd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

firewalldb/kvstores_kvdb.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ the temporary store changes instead of just keeping an in-memory store is that
1616
we can then guarantee atomicity if changes are made to both the permanent and
1717
temporary stores.
1818
19-
rules -> perm -> rule-name -> global -> {k:v}
20-
-> sessions -> group ID -> session-kv-store -> {k:v}
21-
-> feature-kv-stores -> feature-name -> {k:v}
19+
"rules" -> "perm" -> <rule-name> -> "global" -> {k:v}
20+
-> "session-kv-store" -> <group-ID> -> {k:v}
21+
-> "feature-kv-stores" -> <feature-name> -> {k:v}
2222
23-
-> temp -> rule-name -> global -> {k:v}
24-
-> sessions -> group ID -> session-kv-store -> {k:v}
25-
-> feature-kv-stores -> feature-name -> {k:v}
23+
-> "temp" -> <rule-name> -> "global" -> {k:v}
24+
-> "session-kv-store" -> <group-ID> -> {k:v}
25+
-> "feature-kv-stores" -> <feature-name> -> {k:v}
2626
*/
2727

2828
var (

0 commit comments

Comments
 (0)