diff options
author | Max Kellermann <max@duempel.org> | 2014-06-16 19:37:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-06-16 19:46:35 +0200 |
commit | fefb35c782141b96a118dc09bddc9d588b4c2d82 (patch) | |
tree | 9b68d484e477f8c4d1fc33a942fb3796d33622c2 /src/db/update/Walk.cxx | |
parent | b2433a664c4644cd89436821c0aabc422b0f78ef (diff) | |
download | mpd-fefb35c782141b96a118dc09bddc9d588b4c2d82.tar.gz mpd-fefb35c782141b96a118dc09bddc9d588b4c2d82.tar.xz mpd-fefb35c782141b96a118dc09bddc9d588b4c2d82.zip |
Directory: eliminate attribute "have_stat"
Check for 0 in "device" and "inode" instead.
Diffstat (limited to '')
-rw-r--r-- | src/db/update/Walk.cxx | 3 |
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; |