Skip to content

Commit e652ca1

Browse files
committed
chore: Add comment to explain version increment
1 parent 0cb81a3 commit e652ca1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/to/bitkit/data/backup/VssBackupsClient.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ class VssBackupsClient @Inject constructor(
5757

5858
post("/putObjects", request)
5959

60+
// VSS uses optimistic concurrency control: when you specify a version, you're saying
61+
// "update this object only if the current version matches". If successful, VSS
62+
// increments the version and returns the new version (useVersion + 1)
6063
VssObjectInfo(
6164
key = key,
6265
version = useVersion + 1,

0 commit comments

Comments
 (0)