diff options
author | Basavanagowda Kanur <gowda@gluster.com> | 2009-04-13 04:47:39 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-13 10:26:37 +0530 |
commit | ec06475f22db2a3683167c5ffbe236c8e4aaf0ab (patch) | |
tree | 316b286f25958ab142125fe86f5984bd32a8da18 /xlators/storage/bdb/src/bdb.c | |
parent | 945f438d393297cf72a3157532625b6b02e87268 (diff) |
changes to database read interface, to make use of a given buffer instead of allocating internally.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/storage/bdb/src/bdb.c')
-rw-r--r-- | xlators/storage/bdb/src/bdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/bdb/src/bdb.c b/xlators/storage/bdb/src/bdb.c index 9ae4b57c351..81ced573e7f 100644 --- a/xlators/storage/bdb/src/bdb.c +++ b/xlators/storage/bdb/src/bdb.c @@ -485,7 +485,7 @@ bdb_readv (call_frame_t *frame, } /* we are ready to go */ - op_ret = bdb_db_fread (bfd, (char **)&iobuf->ptr, size, offset); + op_ret = bdb_db_fread (bfd, iobuf->ptr, size, offset); read_size = op_ret; if (op_ret == -1) { gf_log (this->name, GF_LOG_DEBUG, |