aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmstore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbmstore.c')
-rw-r--r--src/gdbmstore.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gdbmstore.c b/src/gdbmstore.c
index 2ed1616..6b498b2 100644
--- a/src/gdbmstore.c
+++ b/src/gdbmstore.c
@@ -157,37 +157,33 @@ gdbm_store (GDBM_FILE dbf, datum key, datum content, int flags)
/* Update current bucket data pointer and sizes. */
dbf->bucket->h_table[elem_loc].data_pointer = file_adr;
dbf->bucket->h_table[elem_loc].key_size = key.dsize;
dbf->bucket->h_table[elem_loc].data_size = content.dsize;
/* Write the data to the file. */
- file_pos = GDBM_DEBUG_OVERRIDE ("gdbm_store:seek-failure",
- __lseek (dbf, file_adr, SEEK_SET));
+ file_pos = __lseek (dbf, file_adr, SEEK_SET);
if (file_pos != file_adr)
{
GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,
"%s: lseek: %s", dbf->name, strerror (errno));
GDBM_SET_ERRNO2 (dbf, GDBM_FILE_SEEK_ERROR, TRUE, GDBM_DEBUG_STORE);
_gdbm_fatal (dbf, _("lseek error"));
return -1;
}
- rc = GDBM_DEBUG_OVERRIDE ("gdbm_store:write-1-failure",
- _gdbm_full_write (dbf, key.dptr, key.dsize));
+ rc = _gdbm_full_write (dbf, key.dptr, key.dsize);
if (rc)
{
GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,
"%s: error writing key: %s",
dbf->name, gdbm_db_strerror (dbf));
_gdbm_fatal (dbf, gdbm_db_strerror (dbf));
return -1;
}
- rc = GDBM_DEBUG_OVERRIDE ("gdbm_store:write-2-failure",
- _gdbm_full_write (dbf,
- content.dptr, content.dsize));
+ rc = _gdbm_full_write (dbf, content.dptr, content.dsize);
if (rc)
{
GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,
"%s: error writing content: %s",
dbf->name, gdbm_db_strerror (dbf));
_gdbm_fatal (dbf, gdbm_db_strerror (dbf));

Return to:

Send suggestions and report system problems to the System administrator.