File tree 1 file changed +4
-1
lines changed
src/main/java/com/google/devtools/build/lib/sandbox
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -468,14 +468,17 @@ public SandboxInputs processInputFiles(
468
468
PathFragment pathFragment = e .getKey ();
469
469
ActionInput actionInput = e .getValue ();
470
470
if (actionInput instanceof VirtualActionInput ) {
471
+ // TODO(larsrc): Figure out which VAIs actually require atomicity, maybe avoid it.
471
472
VirtualActionInput input = (VirtualActionInput ) actionInput ;
472
473
byte [] digest =
473
474
input .atomicallyWriteRelativeTo (
474
475
execRootPath ,
475
476
// When 2 actions try to atomically create the same virtual input, they need to have
476
477
// a different suffix for the temporary file in order to avoid racy write to the
477
478
// same one.
478
- ".sandbox" + tempFileUniquifierForVirtualInputWrites .incrementAndGet ());
479
+ "_sandbox"
480
+ + tempFileUniquifierForVirtualInputWrites .incrementAndGet ()
481
+ + ".virtualinputlock" );
479
482
virtualInputs .put (input , digest );
480
483
}
481
484
You can’t perform that action at this time.
0 commit comments