Make Xapian initialization easier to read

Jeremy@kerneltr... - June 1, 2008 - 16:52
Project:xapian
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Define constants to make code more readable, specifically to make it more clear what _xapian_init_database() parameters mean.

If opening a writable database we call _xapian_init_database(XAPIAN_WRITABLE) instead of _xapian_init_database(TRUE). If flushing the database, we call _xapian_init_database(XAPIAN_WRITABLE, XAPIAN_FLUSH) instead of xapian_init_database(TRUE, TRUE). Purely cosmetic to make the code easier to follow.

AttachmentSize
xapian.module.patch1.6 KB

#1

singularo - June 2, 2008 - 01:42
Status:patch (code needs review)» fixed

#2

Anonymous (not verified) - June 16, 2008 - 01:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.