Ticket #422: close.patch
File close.patch, 901 bytes (added by , 15 years ago) |
---|
-
search-xapian/XS/WritableDatabase.xs
old new 47 47 } 48 48 49 49 void 50 WritableDatabase::close() 51 CODE: 52 try { 53 THIS->close(); 54 } 55 catch (const Error &error) { 56 croak( "Exception: %s", error.get_msg().c_str() ); 57 } 58 59 void 50 60 WritableDatabase::begin_transaction(flushed = NO_INIT) 51 61 bool flushed 52 62 CODE: -
search-xapian/t/writabledatabase.t
old new 186 186 ok(!$write->term_exists($delterm), 'check term exists after deleting all documents'); 187 187 is($write->get_termfreq($delterm), 0, 'check term frequency after deleting all documents'); 188 188 189 $write->flush(); 190 $write->close(); 191 189 192 1;