Switch to unified view

a/src/rcldb/rcldb.h b/src/rcldb/rcldb.h
...
...
230
    /** Test if the db entry for the given udi is up to date (by
230
    /** Test if the db entry for the given udi is up to date (by
231
     * comparing the input and stored sigs). 
231
     * comparing the input and stored sigs). 
232
     * Side-effect: set the existence flag for the file document 
232
     * Side-effect: set the existence flag for the file document 
233
     * and all subdocs if any (for later use by 'purge()') 
233
     * and all subdocs if any (for later use by 'purge()') 
234
     */
234
     */
235
    bool needUpdate(const string &udi, const string& sig);
235
    bool needUpdate(const string &udi, const string& sig, bool *existed=0);
236
236
237
    /** Add or update document identified by unique identifier.
237
    /** Add or update document identified by unique identifier.
238
     * @param config Config object to use. Can be the same as the member config
238
     * @param config Config object to use. Can be the same as the member config
239
     *   or a clone, to avoid sharing when called in multithread context.
239
     *   or a clone, to avoid sharing when called in multithread context.
240
     * @param udi the Unique Document Identifier is opaque to us. 
240
     * @param udi the Unique Document Identifier is opaque to us. 
...
...
258
    void waitUpdIdle();
258
    void waitUpdIdle();
259
#endif
259
#endif
260
260
261
    /** Delete document(s) for given UDI, including subdocs */
261
    /** Delete document(s) for given UDI, including subdocs */
262
    bool purgeFile(const string &udi, bool *existed = 0);
262
    bool purgeFile(const string &udi, bool *existed = 0);
263
    /** Delete subdocs with an out of date sig. We do this to purge
264
  obsolete subdocs during a partial update where no general purge
265
  will be done */
266
    bool purgeOrphans(const string &udi);
263
267
264
    /** Remove documents that no longer exist in the file system. This
268
    /** Remove documents that no longer exist in the file system. This
265
     * depends on the update map, which is built during
269
     * depends on the update map, which is built during
266
     * indexing (needUpdate() / addOrUpdate()). 
270
     * indexing (needUpdate() / addOrUpdate()). 
267
     *
271
     *
...
...
440
    /******* End logical constnesss */
444
    /******* End logical constnesss */
441
445
442
#ifdef IDX_THREADS
446
#ifdef IDX_THREADS
443
    friend void *DbUpdWorker(void*);
447
    friend void *DbUpdWorker(void*);
444
#endif // IDX_THREADS
448
#endif // IDX_THREADS
445
    bool purgeFileWrite(const string& udi, const string& uniterm);
446
449
447
    // Internal form of close, can be called during destruction
450
    // Internal form of close, can be called during destruction
448
    bool i_close(bool final);
451
    bool i_close(bool final);
449
    // Reinitialize when adding/removing additional dbs
452
    // Reinitialize when adding/removing additional dbs
450
    bool adjustdbs(); 
453
    bool adjustdbs();