bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about --statistics option of htags


From: Shigio Yamaguchi
Subject: Re: question about --statistics option of htags
Date: Tue, 23 Aug 2005 23:57:34 +0900

> This makes it impossible to use DB1.85-compatible API for debugging.
> It is not good to change the interface of DB.

How about adding new close_abandon() function?

[libutil/dbop.c]
void
dbop_close(dbop)
{
#ifdef USE_DB185_COMPAT
        (void)db->close(db);
#else
        if (dbop->openflags & DBOP_REMOVE)
                (void)db->close_abandon(db);
        else
                (void)db->close(db);
#endif

[libdb/bt_close.c]
int
__bt_close_abandon(dbp)                         <= new function
        DB *dbp;
{
        /* Sync the tree. */
        /*
        if (__bt_sync(dbp, 0) == RET_ERROR)     <= don't sync
                        return (RET_ERROR);
        */
--
Shigio YAMAGUCHI <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]