Skip to content
Snippets Groups Projects
Commit 1430c7a4 authored by Fredrik Noring's avatar Fredrik Noring
Browse files

Fixed destruct problems.

Rev: lib/modules/Yabu.pmod/module.pmod:1.21
parent 56d1c07b
Branches
Tags
No related merge requests found
......@@ -4,7 +4,7 @@
* associated with a unique key.
*/
constant cvs_id = "$Id: module.pmod,v 1.20 2000/03/29 15:48:46 marcus Exp $";
constant cvs_id = "$Id: module.pmod,v 1.21 2000/06/29 12:13:33 noring Exp $";
#define ERR(msg) throw(({ "(Yabu) "+msg+"\n", backtrace() }))
#define IO_ERR(msg) throw(({ sprintf("(Yabu) %s, %s (%d)\n",msg,strerror(errno()),errno()),backtrace() }))
......@@ -486,7 +486,7 @@ class Chunk {
void destroy()
{
if(parent && write)
destruct(parent);
parent->sync();
}
void create(string filename_in, string mode,
......@@ -920,8 +920,11 @@ class Table {
void destroy()
{
remove_call_out(sync_schedule);
sync();
destruct(index);
destruct(db);
destruct(lock_file);
remove_call_out(sync_schedule);
}
void _destroy()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment