// return true if the size of the buffers plus the amount of work done is large enough. (But return false if there is nothing to be flushed (the buffers empty)).
VERIFY_ASSERTION(count==0,msg_i,"a fresh message was found in the stale message tree");
}elseif(messages_have_been_moved){
VERIFY_ASSERTION(count==1,msg_i,"a stale message was not found in the stale message tree");
}
VERIFY_ASSERTION(count<=1,msg_i,"a message was found multiple times in the stale message tree");
VERIFY_ASSERTION(total_count<=1,msg_i,"a message was found in both message trees (or more than once in a single tree)");
VERIFY_ASSERTION(total_count>=1,msg_i,"a message was not found in either message tree");
}else{
VERIFY_ASSERTION(ft_msg_type_applies_all(type)||ft_msg_type_does_nothing(type),msg_i,"a message was found that does not apply either to all or to only one key");
VERIFY_ASSERTION(count==0,i,"a fresh message was found in the stale message tree");
}elseif(messages_have_been_moved){
VERIFY_ASSERTION(count==1,i,"a stale message was not found in the stale message tree");
}
VERIFY_ASSERTION(count<=1,i,"a message was found multiple times in the stale message tree");
VERIFY_ASSERTION(total_count<=1,i,"a message was found in both message trees (or more than once in a single tree)");
VERIFY_ASSERTION(total_count>=1,i,"a message was not found in either message tree");
}else{
VERIFY_ASSERTION(ft_msg_type_applies_all(type)||ft_msg_type_does_nothing(type),i,"a message was found that does not apply either to all or to only one key");
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
#include "fifo.h"
#include "xids.h"
#include "ybt.h"
#include <memory.h>
#include <toku_assert.h>
structfifo{
intn_items_in_fifo;
char*memory;// An array of bytes into which fifo_entries are embedded.
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
#pragma once
#include "ft/fttypes.h"
#include "ft/xids-internal.h"
#include "ft/xids.h"
#include "ft/ft_msg.h"
#include "ft/ybt.h"
// If the fifo_entry is unpacked, the compiler aligns the xids array and we waste a lot of space