about summary refs log tree commit diff
path: root/third_party/nix/src/nix-daemon
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-16T02·13-0400
committerglittershark <grfn@gws.fyi>2020-07-16T21·40+0000
commit3999439fbb3d455def815fc873aceea8c9b7d117 (patch)
tree7a8cf117fae57004bf67c40d7366c7d2ba900228 /third_party/nix/src/nix-daemon
parentb6cb681c0b98fff8397b3ad4270b8d1ab2defa0b (diff)
feat(3p/nix): Add OptimiseStore r/1329
Change-Id: I0d254504801283e018eef41bd5ea9850b17c0d80
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1205
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/nix/src/nix-daemon')
-rw-r--r--third_party/nix/src/nix-daemon/nix-daemon.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/nix-daemon/nix-daemon.cc b/third_party/nix/src/nix-daemon/nix-daemon.cc
index da3d909f1820..5296199380b3 100644
--- a/third_party/nix/src/nix-daemon/nix-daemon.cc
+++ b/third_party/nix/src/nix-daemon/nix-daemon.cc
@@ -630,12 +630,13 @@ static void performOp(TunnelLogger* logger, const ref<Store>& store,
       break;
     }
 
-    case wopOptimiseStore:
+    case wopOptimiseStore: {
       logger->startWork();
       store->optimiseStore();
       logger->stopWork();
       to << 1;
       break;
+    }
 
     case wopVerifyStore: {
       bool checkContents;