From 722f0aea3f65e431a17d4f8ae02d94e376be2125 Mon Sep 17 00:00:00 2001 From: Rich Prohaska Date: Tue, 16 Apr 2013 23:58:54 -0400 Subject: [PATCH] remove the fifo peek cmdstruct cruft refs[t:2189] git-svn-id: file:///svn/toku/tokudb@15965 c7de825b-a66e-492c-adef-691d508d4ae1 --- newbrt/fifo.c | 2 ++ newbrt/fifo.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/newbrt/fifo.c b/newbrt/fifo.c index 8f50fd2d577..c85a87e2130 100644 --- a/newbrt/fifo.c +++ b/newbrt/fifo.c @@ -123,6 +123,7 @@ int toku_fifo_peek(FIFO fifo, bytevec *key, unsigned int *keylen, bytevec *data, return 0; } +#if 0 // fill in the BRT_MSG, using the two DBTs for the DBT part. int toku_fifo_peek_cmdstruct (FIFO fifo, BRT_MSG cmd, DBT*key, DBT*data) { u_int32_t type; @@ -137,6 +138,7 @@ int toku_fifo_peek_cmdstruct (FIFO fifo, BRT_MSG cmd, DBT*key, DBT*data) { cmd->u.id.val=data; return 0; } +#endif int toku_fifo_deq(FIFO fifo) { if (fifo->n_items_in_fifo==0) return -1; diff --git a/newbrt/fifo.h b/newbrt/fifo.h index 34998659bae..63b3f27fc1c 100644 --- a/newbrt/fifo.h +++ b/newbrt/fifo.h @@ -23,7 +23,7 @@ int toku_fifo_n_entries(FIFO); int toku_fifo_enq_cmdstruct (FIFO fifo, const BRT_MSG cmd); int toku_fifo_enq (FIFO, const void *key, ITEMLEN keylen, const void *data, ITEMLEN datalen, int type, XIDS xids); int toku_fifo_peek (FIFO, bytevec *key, ITEMLEN *keylen, bytevec *data, ITEMLEN *datalen, u_int32_t *type, XIDS *xids); -int toku_fifo_peek_cmdstruct (FIFO, BRT_MSG, DBT*, DBT*); // fill in the BRT_MSG, using the two DBTs for the DBT part. +// int toku_fifo_peek_cmdstruct (FIFO, BRT_MSG, DBT*, DBT*); // fill in the BRT_MSG, using the two DBTs for the DBT part. int toku_fifo_deq(FIFO); unsigned long toku_fifo_memory_size(FIFO); // return how much memory the fifo uses.