aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Walk.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/db/update/Walk.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx
index afb67ab29..f71faa86d 100644
--- a/src/db/update/Walk.cxx
+++ b/src/db/update/Walk.cxx
@@ -71,7 +71,6 @@ directory_set_stat(Directory &dir, const FileInfo &info)
{
dir.inode = info.inode;
dir.device = info.device;
- dir.have_stat = true;
}
inline void
@@ -167,7 +166,7 @@ FindAncestorLoop(Storage &storage, Directory *parent,
return 0;
while (parent) {
- if (!parent->have_stat &&
+ if (parent->device == 0 && parent->inode == 0 &&
!update_directory_stat(storage, *parent))
return -1;