Switch to unified view

a/src/rcldb/rcldb.h b/src/rcldb/rcldb.h
...
...
366
    */
366
    */
367
    static void setInPlaceReset() {o_inPlaceReset = true;}
367
    static void setInPlaceReset() {o_inPlaceReset = true;}
368
368
369
    /* This has to be public for access by embedded Query::Native */
369
    /* This has to be public for access by embedded Query::Native */
370
    Native *m_ndb; 
370
    Native *m_ndb; 
371
    bool purgeFileWrite(const string& udi, const string& uniterm);
372
private:
371
private:
373
    const RclConfig *m_config;
372
    const RclConfig *m_config;
374
    string     m_reason; // Error explanation
373
    string     m_reason; // Error explanation
375
374
376
    // Xapian directories for additional databases to query
375
    // Xapian directories for additional databases to query
377
    vector<string> m_extraDbs;
376
    vector<string> m_extraDbs;
378
    OpenMode m_mode;
377
    OpenMode m_mode;
379
    // File existence vector: this is filled during the indexing pass. Any
378
    // File existence vector: this is filled during the indexing pass. Any
380
    // document whose bit is not set at the end is purged
379
    // document whose bit is not set at the end is purged
381
    vector<bool> updated;
380
    vector<bool> updated;
382
    // Stop terms: those don't get indexed.
383
    StopList m_stops;
384
    // Text bytes indexed since beginning
381
    // Text bytes indexed since beginning
385
    long long    m_curtxtsz;
382
    long long    m_curtxtsz;
386
    // Text bytes at last flush
383
    // Text bytes at last flush
387
    long long    m_flushtxtsz;
384
    long long    m_flushtxtsz;
388
    // Text bytes at last fsoccup check
385
    // Text bytes at last fsoccup check
...
...
391
    int         m_occFirstCheck;
388
    int         m_occFirstCheck;
392
389
393
    /***************
390
    /***************
394
     * Parameters cached out of the configuration files. Logically const 
391
     * Parameters cached out of the configuration files. Logically const 
395
     * after init */
392
     * after init */
393
    // Stop terms: those don't get indexed.
394
    StopList m_stops;
396
    // This is how long an abstract we keep or build from beginning of
395
    // This is how long an abstract we keep or build from beginning of
397
    // text when indexing. It only has an influence on the size of the
396
    // text when indexing. It only has an influence on the size of the
398
    // db as we are free to shorten it again when displaying
397
    // db as we are free to shorten it again when displaying
399
    int          m_idxAbsTruncLen;
398
    int          m_idxAbsTruncLen;
400
    // This is the size of the abstract that we synthetize out of query
399
    // This is the size of the abstract that we synthetize out of query
...
...
414
    // beginning, with the advantage that, for small index formats updates, 
413
    // beginning, with the advantage that, for small index formats updates, 
415
    // between releases the index remains available while being recreated.
414
    // between releases the index remains available while being recreated.
416
    static bool o_inPlaceReset;
415
    static bool o_inPlaceReset;
417
    /******* End logical constnesss */
416
    /******* End logical constnesss */
418
417
418
#ifdef IDX_THREADS
419
    friend void *DbUpdWorker(void*);
420
#endif // IDX_THREADS
421
    bool purgeFileWrite(const string& udi, const string& uniterm);
422
419
    // Internal form of close, can be called during destruction
423
    // Internal form of close, can be called during destruction
420
    bool i_close(bool final);
424
    bool i_close(bool final);
421
    // Reinitialize when adding/removing additional dbs
425
    // Reinitialize when adding/removing additional dbs
422
    bool adjustdbs(); 
426
    bool adjustdbs(); 
423
    bool stemExpand(const string &lang, const string &s, 
427
    bool stemExpand(const string &lang, const string &s,