* Invalidate the scanner cache when an inotify deletion takes place.

This commit is contained in:
Justin Maggard
2009-04-21 02:50:45 +00:00
parent 6fc880a25d
commit c4ca6527f0
6 changed files with 27 additions and 12 deletions

View File

@ -461,6 +461,8 @@ inotify_remove_file(const char * path)
sqlite_int64 detailID = 0;
int i, rows, children, ret = 1;
/* Invalidate the scanner cache so we don't insert files into non-existent containers */
valid_cache = 0;
sql = sqlite3_mprintf("SELECT ID from DETAILS where PATH = '%q'", path);
if( (sql_get_table(db, sql, &result, &rows, NULL) == SQLITE_OK) )
{