From 373784273 at qq.com Wed May 20 09:53:48 2015 From: 373784273 at qq.com (=?gb18030?B?w7vT0O+us8Y=?=) Date: Wed, 20 May 2015 16:53:48 +0800 Subject: [Xapian-devel] about use 'xapian-replicate' Message-ID: hi, the xapian-replicate has a parameter: --reader-time. I see the help ,means ,if there has searcher open the Database, then xapian-replicate will wait the searcher done. but the xapian-replicate how to know there has a searcher is using the Database. How do I open the database when I search? now I open the database like this: Xapian::Database db(dbpath); is that correct ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From olly at survex.com Wed May 20 14:41:57 2015 From: olly at survex.com (Olly Betts) Date: Wed, 20 May 2015 14:41:57 +0100 Subject: [Xapian-devel] about use 'xapian-replicate' In-Reply-To: References: Message-ID: <20150520134157.GF10945@survex.com> This question isn't related to development of Xapian, so would be more appropriate to xapian-discuss. On Wed, May 20, 2015 at 04:53:48PM +0800, ???? wrote: > the xapian-replicate has a parameter: --reader-time. I see the help > ,means ,if there has searcher open the Database, then > xapian-replicate will wait the searcher done. but the xapian-replicate > how to know there has a searcher is using the Database. It doesn't know, it just waits for the number of seconds specified by --reader-time between applying revisions in case there are readers active. If you specify a time longer than any search takes, everything should work nicely. > How do I open the database when I search? now I open the database > like this: Xapian::Database db(dbpath); is that correct ? Yes, same as for any database. Cheers, Olly From 373784273 at qq.com Wed May 20 09:53:48 2015 From: 373784273 at qq.com (=?gb18030?B?w7vT0O+us8Y=?=) Date: Wed, 20 May 2015 16:53:48 +0800 Subject: [Xapian-devel] about use 'xapian-replicate' Message-ID: hi, the xapian-replicate has a parameter: --reader-time. I see the help ,means ,if there has searcher open the Database, then xapian-replicate will wait the searcher done. but the xapian-replicate how to know there has a searcher is using the Database. How do I open the database when I search? now I open the database like this: Xapian::Database db(dbpath); is that correct ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From olly at survex.com Wed May 20 14:41:57 2015 From: olly at survex.com (Olly Betts) Date: Wed, 20 May 2015 14:41:57 +0100 Subject: [Xapian-devel] about use 'xapian-replicate' In-Reply-To: References: Message-ID: <20150520134157.GF10945@survex.com> This question isn't related to development of Xapian, so would be more appropriate to xapian-discuss. On Wed, May 20, 2015 at 04:53:48PM +0800, ???? wrote: > the xapian-replicate has a parameter: --reader-time. I see the help > ,means ,if there has searcher open the Database, then > xapian-replicate will wait the searcher done. but the xapian-replicate > how to know there has a searcher is using the Database. It doesn't know, it just waits for the number of seconds specified by --reader-time between applying revisions in case there are readers active. If you specify a time longer than any search takes, everything should work nicely. > How do I open the database when I search? now I open the database > like this: Xapian::Database db(dbpath); is that correct ? Yes, same as for any database. Cheers, Olly