fixup! Fix event plugin possible transaction reuse bug
Fix the paths that were not updated when adding the 'next' directory.
Change-Id: I34e084f8d00bc9f0017c33678ba817720f769565
diff --git a/src/main/java/com/googlesource/gerrit/plugins/events/fsstore/UpdatableFileValue.java b/src/main/java/com/googlesource/gerrit/plugins/events/fsstore/UpdatableFileValue.java
index 59cb13e..9e8f370 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/events/fsstore/UpdatableFileValue.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/events/fsstore/UpdatableFileValue.java
@@ -211,9 +211,9 @@
// when closed (operations depend on "closed" in paths).
perserve();
- // rename update/<uuid>/closed/value(next) -> value
+ // rename update/<uuid>/next/closed/value(next) -> value
committed = myCommit = Fs.tryAtomicMove(upaths.value, updatable.path); // Phase 5
- // now there should be: update/<uuid>/closed/ and: value (file)
+ // now there should be: update/<uuid>/next/closed/ and: value (file)
}
if (!committed && closed) {
committed = !Files.exists(upaths.value);