This avoids compiler warnings for signed vs unsigned comparison.
char **database_initcons,
BdrConnectionConfig **out_config)
{
- int off;
+ Size off;
char *errmsg = NULL;
PQconninfoOption *options;
PQconninfoOption *cur_option;
Tuplestorestate *tupstore;
MemoryContext per_query_ctx;
MemoryContext oldcontext;
- int current_offset;
+ size_t current_offset;
if (!superuser())
elog(ERROR, "blarg");
int fd;
const char *path = "global/bdr.stat";
BdrCountSerialize serial;
- Size read_size;
+ ssize_t read_size;
if (BdrCountCtl == NULL)
elog(ERROR, "cannot use bdr statistics function without loading bdr");
static BdrWorker*
find_init_replica_worker(Name dbname)
{
- Size off;
+ int off;
Assert(LWLockHeldByMe(BdrWorkerCtl->lock));
/* Check whether one of our connections has init_replica set */
void
bdr_sequencer_wakeup(void)
{
- int off;
+ size_t off;
BdrSequencerSlot *slot;