mirror of https://github.com/citusdata/citus.git
Handle case of partially-present metadata.
parent
d03e9ca861
commit
630e579912
|
@ -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