From e5172f1e595dc5bc5ba2eafc2f8a660cbcb9f719 Mon Sep 17 00:00:00 2001 From: skimo Date: Tue, 21 Aug 2001 11:52:04 +0000 Subject: [PATCH] Copy type field directly instead of calling get_type to avoid depending on DB 3.3. We're not being very kosher here in any case. --- common/recover.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/recover.c b/common/recover.c index 98751761..117121a8 100644 --- a/common/recover.c +++ b/common/recover.c @@ -10,7 +10,7 @@ #include "config.h" #ifndef lint -static const char sccsid[] = "$Id: recover.c,v 10.26 2001/08/21 09:16:37 skimo Exp $ (Berkeley) $Date: 2001/08/21 09:16:37 $"; +static const char sccsid[] = "$Id: recover.c,v 10.27 2001/08/21 11:52:04 skimo Exp $ (Berkeley) $Date: 2001/08/21 11:52:04 $"; #endif /* not lint */ #include @@ -215,7 +215,7 @@ rcv_init(SCR *sp) /* Turn on a busy message, and sync it to backing store. */ sp->gp->scr_busy(sp, "057|Copying file for recovery...", BUSY_ON); - ep->db->get_type(ep->db, &type); + type = ep->db->type; /* XXXX gross hack We don't want DB to write to the underlying recno database, so we just tell it that it's @@ -269,7 +269,7 @@ rcv_sync(SCR *sp, u_int flags) /* Sync the file if it's been modified. */ if (F_ISSET(ep, F_MODIFIED)) { DBTYPE type; - ep->db->get_type(ep->db, &type); + type = ep->db->type; /* XXXX gross hack We don't want DB to write to the underlying recno database, so we just tell it that it's -- 2.11.4.GIT