aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/FileContentsProxy.java
diff options
context:
space:
mode:
authorGravatar janakr <janakr@google.com>2018-03-06 14:56:45 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-06 14:58:20 -0800
commitf00d624ba6b39de6aa0ba5a9626526f239ab413d (patch)
treee792401a32cb182d4f02101e57f2cbda69f97bb6 /src/main/java/com/google/devtools/build/lib/skyframe/FileContentsProxy.java
parent445935c725cee555a04b754fd227efabee148726 (diff)
@AutoCodec File{State}Value.
PiperOrigin-RevId: 188085895
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/FileContentsProxy.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/FileContentsProxy.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/FileContentsProxy.java b/src/main/java/com/google/devtools/build/lib/skyframe/FileContentsProxy.java
index 8dca37c391..2b845edc38 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/FileContentsProxy.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/FileContentsProxy.java
@@ -13,21 +13,23 @@
// limitations under the License.
package com.google.devtools.build.lib.skyframe;
+import com.google.devtools.build.lib.skyframe.serialization.autocodec.AutoCodec;
import com.google.devtools.build.lib.vfs.FileStatus;
import java.io.IOException;
import java.io.Serializable;
import java.util.Objects;
/**
- * In case we can't get a fast digest from the filesystem, we store this metadata as a proxy to
- * the file contents. Currently it is a pair of a relevant timestamp and a "node id". On Linux the
- * former is the ctime and the latter is the inode number. We might want to add the device number
- * in the future.
+ * In case we can't get a fast digest from the filesystem, we store this metadata as a proxy to the
+ * file contents. Currently it is a pair of a relevant timestamp and a "node id". On Linux the
+ * former is the ctime and the latter is the inode number. We might want to add the device number in
+ * the future.
*
* <p>For a Linux example of why mtime alone is insufficient, note that 'mv' preserves timestamps.
* So if files 'a' and 'b' initially have the same timestamp, then we would think 'b' is unchanged
* after the user executes `mv a b` between two builds.
*/
+@AutoCodec
public final class FileContentsProxy implements Serializable {
private final long ctime;
private final long nodeId;