mirror of https://github.com/djcb/mu.git
* mu-store-xapian: remove the 'tune' function
This commit is contained in:
parent
2b0aca1bf7
commit
2d96fcd210
|
@ -51,7 +51,7 @@ mu_store_xapian_new (const char* path)
|
|||
(path,Xapian::DB_CREATE_OR_OPEN);
|
||||
|
||||
/* keep count of processed docs */
|
||||
store->_transaction_size = 10000; /* default */
|
||||
store->_transaction_size = 1000; /* default */
|
||||
store->_in_transaction = false;
|
||||
store->_processed = 0;
|
||||
|
||||
|
@ -76,19 +76,6 @@ mu_store_xapian_new (const char* path)
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
mu_store_xapian_tune (MuStoreXapian *store,
|
||||
unsigned int transaction_size)
|
||||
{
|
||||
g_return_if_fail (store);
|
||||
|
||||
if (transaction_size) {
|
||||
g_message ("tune: setting xapian transaction size to %u",
|
||||
transaction_size);
|
||||
store->_transaction_size = transaction_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
mu_store_xapian_destroy (MuStoreXapian *store)
|
||||
|
|
|
@ -31,8 +31,7 @@ struct _MuStoreXapian;
|
|||
typedef struct _MuStoreXapian MuStoreXapian;
|
||||
|
||||
MuStoreXapian* mu_store_xapian_new (const char* path);
|
||||
void mu_store_xapian_tune (MuStoreXapian *store,
|
||||
unsigned int transaction_size);
|
||||
|
||||
void mu_store_xapian_destroy (MuStoreXapian *store);
|
||||
MuResult mu_store_xapian_store (MuStoreXapian *store,
|
||||
MuMsgGMime *msg);
|
||||
|
|
Loading…
Reference in New Issue