summaryrefslogtreecommitdiffstats
path: root/src/deps_log.h
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-08-26 23:10:24 (GMT)
committerNico Weber <nicolasweber@gmx.de>2013-08-26 23:10:24 (GMT)
commitd63bd546242c26bb7c8de9da8939d75947461fee (patch)
tree26689f2f8f76c005d4a45f1172db52e41b3f2a4a /src/deps_log.h
parent8c782f12e049ea44c02332f574867e2290204c7f (diff)
parent65ad26801e19b35a386e82491ed32085adbf1a85 (diff)
downloadNinja-d63bd546242c26bb7c8de9da8939d75947461fee.zip
Ninja-d63bd546242c26bb7c8de9da8939d75947461fee.tar.gz
Ninja-d63bd546242c26bb7c8de9da8939d75947461fee.tar.bz2
Merge pull request #642 from nico/depslogidx
Suffix depslog path records with their expected index.
Diffstat (limited to 'src/deps_log.h')
-rw-r--r--src/deps_log.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/deps_log.h b/src/deps_log.h
index de0fe63..47ade03 100644
--- a/src/deps_log.h
+++ b/src/deps_log.h
@@ -52,7 +52,9 @@ struct State;
/// Concretely, a record is:
/// two bytes record length, high bit indicates record type
/// (implies max record length 32k)
-/// path records contain just the string name of the path
+/// path records contain the string name of the path, followed by the
+/// one's complement of the expected index of the record (to detect
+/// concurrent writes of multiple ninja processes to the log).
/// dependency records are an array of 4-byte integers
/// [output path id, output path mtime, input path id, input path id...]
/// (The mtime is compared against the on-disk output path mtime