mirror of https://github.com/citusdata/citus.git
address feedback
parent
92e1603443
commit
d1c7d9f09d
2
Makefile
2
Makefile
|
@ -25,7 +25,7 @@ else
|
|||
$(error version $(VER) is not supported)
|
||||
endif
|
||||
|
||||
PG_CPPFLAGS = -std=c11 -Wshadow
|
||||
PG_CFLAGS = -std=c11 -Wshadow
|
||||
OBJS = cstore.o cstore_writer.o cstore_reader.o \
|
||||
cstore_compression.o mod.o cstore_metadata_tables.o
|
||||
|
||||
|
|
|
@ -988,7 +988,6 @@ DeserializeBlockData(StripeBuffers *stripeBuffers, uint64 blockIndex,
|
|||
static Datum
|
||||
ColumnDefaultValue(TupleConstr *tupleConstraints, Form_pg_attribute attributeForm)
|
||||
{
|
||||
Datum defaultValue = 0;
|
||||
Node *defaultValueNode = NULL;
|
||||
int defValIndex = 0;
|
||||
|
||||
|
@ -1009,7 +1008,7 @@ ColumnDefaultValue(TupleConstr *tupleConstraints, Form_pg_attribute attributeFor
|
|||
if (IsA(defaultValueNode, Const))
|
||||
{
|
||||
Const *constNode = (Const *) defaultValueNode;
|
||||
defaultValue = constNode->constvalue;
|
||||
return constNode->constvalue;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1018,8 +1017,6 @@ ColumnDefaultValue(TupleConstr *tupleConstraints, Form_pg_attribute attributeFor
|
|||
errhint("Expression is either mutable or "
|
||||
"does not evaluate to constant value")));
|
||||
}
|
||||
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -386,8 +386,8 @@ WriteToSmgr(TableWriteState *writeState, char *data, uint32 dataLength)
|
|||
|
||||
while (addr.blockno >= nblocks)
|
||||
{
|
||||
buffer = ReadBuffer(rel, P_NEW);
|
||||
ReleaseBuffer(buffer);
|
||||
Buffer newBuffer = ReadBuffer(rel, P_NEW);
|
||||
ReleaseBuffer(newBuffer);
|
||||
nblocks = smgrnblocks(rel->rd_smgr, MAIN_FORKNUM);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue