mirror of https://github.com/citusdata/citus.git
Merge pull request #31 from citusdata/upgrade
Handle case of partially-present metadata.merge-cstore-pykello
commit
4339e91193
|
@ -740,6 +740,15 @@ DeleteDataFileMetadataRowIfExists(Oid relfilenode)
|
|||
SysScanDesc scanDescriptor = NULL;
|
||||
HeapTuple heapTuple = NULL;
|
||||
|
||||
/*
|
||||
* During a restore for binary upgrade, metadata tables and indexes may or
|
||||
* may not exist.
|
||||
*/
|
||||
if (IsBinaryUpgrade)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ScanKeyInit(&scanKey[0], Anum_cstore_data_files_relfilenode,
|
||||
BTEqualStrategyNumber, F_OIDEQ, Int32GetDatum(relfilenode));
|
||||
|
||||
|
|
Loading…
Reference in New Issue