mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
Server: don't write empty transactions
This commit is contained in:
@@ -450,6 +450,11 @@ public class FileObjectPersistentStore implements ObjectPersistentStore {
|
||||
|
||||
public void commitTxImpl(TxManifest manifest, boolean failIfNotFound) {
|
||||
try {
|
||||
if (manifest.getDeleted().isEmpty() && manifest.getWritten().isEmpty()) {
|
||||
Log.debug("Empty manifest, skipping");
|
||||
return;
|
||||
}
|
||||
|
||||
putTxManifest(manifest);
|
||||
|
||||
var latch = new CountDownLatch(manifest.getWritten().size() + manifest.getDeleted().size());
|
||||
|
||||
Reference in New Issue
Block a user