fix a bunch of incomplete struct initializers

This commit is contained in:
Russell Sears 2013-02-13 16:34:33 -08:00
parent 7c09a7280f
commit 4886bbd090
12 changed files with 37 additions and 16 deletions

View file

@ -154,7 +154,8 @@ struct stasis_handle_t debug_func = {
/*.async_force =*/ NULL,
/*.force_range =*/ debug_force_range,
/*.fallocate =*/ NULL,
/*.error =*/ 0
/*.error =*/ 0,
/*.impl =*/ 0
};

View file

@ -480,7 +480,8 @@ struct stasis_handle_t file_func = {
/*.async_force =*/ file_async_force,
/*.force_range =*/ file_force_range,
/*.fallocate =*/ file_fallocate,
/*.error =*/ 0
/*.error =*/ 0,
/*.impl =*/ 0
};
stasis_handle_t * stasis_handle(open_file)(const char * filename, int flags, int mode) {

View file

@ -181,7 +181,8 @@ struct stasis_handle_t mem_func = {
/*.async_force =*/ mem_force,
/*.force_range =*/ mem_force_range,
/*.fallocate =*/ NULL,
/*.error =*/ 0
/*.error =*/ 0,
/*.impl =*/ 0
};
stasis_handle_t * stasis_handle(open_memory)(void) {

View file

@ -600,7 +600,8 @@ struct stasis_handle_t nbw_func = {
/*.async_force =*/ NULL,
/*.force_range =*/ nbw_force_range,
/*.fallocate =*/ NULL,
/*.error =*/ 0
/*.error =*/ 0,
/*.impl =*/ 0
};
/**

View file

@ -412,7 +412,8 @@ static struct stasis_handle_t pfile_func = {
/*.async_force =*/ pfile_async_force,
/*.force_range =*/ pfile_force_range,
/*.fallocate =*/ pfile_fallocate,
/*.error =*/ 0
/*.error =*/ 0,
/*.impl =*/ 0
};
stasis_handle_t *stasis_handle(open_pfile)(const char *filename,

View file

@ -187,7 +187,8 @@ struct stasis_handle_t raid0_func = {
/*.async_force =*/ raid0_async_force,
/*.force_range =*/ raid0_force_range,
/*.fallocate =*/ raid0_fallocate,
/*.error =*/ 0
/*.error =*/ 0,
/*.impl =*/ 0
};
stasis_handle_t * stasis_handle_open_raid0(int handle_count, stasis_handle_t** h, uint32_t stripe_size) {

View file

@ -145,7 +145,8 @@ struct stasis_handle_t raid1_func = {
/*.async_force =*/ raid1_async_force,
/*.force_range =*/ raid1_force_range,
/*.fallocate =*/ raid1_fallocate,
/*.error =*/ 0
/*.error =*/ 0,
/*.impl =*/ 0
};
stasis_handle_t * stasis_handle_open_raid1(stasis_handle_t* a, stasis_handle_t* b) {

View file

@ -751,6 +751,8 @@ stasis_log_t* stasis_log_file_pool_open(const char* dirname, int filemode, int f
stasis_log_file_pool_truncation_point,
stasis_log_file_pool_close,
0,//stasis_log_file_pool_is_durable,
0,//group force
0 //impl
};
memcpy(ret, &proto, sizeof(proto));
ret->impl = fp;

View file

@ -219,7 +219,9 @@ stasis_log_t* stasis_log_impl_in_memory_open(void) {
stasis_log_impl_in_memory_truncate,
stasis_log_impl_in_memory_truncation_point,
stasis_log_impl_in_memory_close,
stasis_log_impl_in_memory_is_durable
stasis_log_impl_in_memory_is_durable,
0,// group_force
0 // void* impl
};
stasis_log_t* log = stasis_alloc(stasis_log_t);
memcpy(log,&proto, sizeof(proto));

View file

@ -99,7 +99,11 @@ static lsn_t stasis_log_write_prepare(stasis_log_t* log, stasis_transaction_tabl
LogEntry * stasis_log_write_update(stasis_log_t* log, stasis_transaction_table_entry_t * l,
pageid_t page, Page * p, unsigned int op,
const byte * arg, size_t arg_size) {
stasis_transaction_table_entry_t dummy = { -1, -1, INVALID_LSN, INVALID_LSN, {0,0,0}, -1 };
stasis_transaction_table_entry_t dummy = { -1, -1, INVALID_LSN, INVALID_LSN, {0,0,0}, -1
#ifndef HAVE_GCC_ATOMICS
, PTHREAD_MUTEX_INITIALIZER
#endif
};
if(l == 0) { l = &dummy; }
LogEntry * e = allocUpdateLogEntry(log, l->prevLSN, l->xid, op,

View file

@ -838,6 +838,8 @@ stasis_log_t* stasis_log_safe_writes_open(const char * filename,
firstLogEntry_LogWriter,// truncation_point
close_LogWriter, // deinit
isDurable_LogWriter, // is_durable
0,// group force
0 // impl
};
stasis_log_safe_writes_state * sw = stasis_alloc(stasis_log_safe_writes_state);

View file

@ -639,6 +639,7 @@ class StaticMulticolumn {
*/
static const page_impl static_multicolumn_impl = {
-1,
0, // has header
0, // multicolumnRead,
0, // multicolumnWrite,
0, // multicolumnReadDone,
@ -648,14 +649,17 @@ static const page_impl static_multicolumn_impl = {
0, // multicolumnGetLength,
0, // multicolumnFirst,
0, // multicolumnNext,
0, // multicolumnLast,
0, // multicolumnIsBlockSupported,
0, // multicolumnBlockFirst,
0, // multicolumnBlockNext,
0, // multicolumnBlockDone,
0, // multicolumnFreespace,
0, // multicolumnCompact,
0, // multicolumnCompactSlotIDs,
0, // multicolumnPreRalloc,
0, // multicolumnPostRalloc,
0, // multicolumnSplice,
0, // multicolumnFree,
0, // dereference_identity,
0, // multicolumnLoaded,