1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Fix instances where database-id was not rendered as an integer in JSON info output.

Fixed by Cynthia Shang.
Reported by Jason O'Donnell.
This commit is contained in:
Cynthia Shang
2017-10-18 08:42:32 -04:00
committed by David Steele
parent b1efd598cf
commit 2d56de00fc
8 changed files with 35 additions and 26 deletions
+9
View File
@@ -20,6 +20,15 @@
<p>Remove error when overlapping timelines are detected. Overlapping timelines are valid in many Point-in-Time-Recovery (PITR) scenarios.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideator id="odonnell.jason"/>
<release-item-contributor id="shang.cynthia"/>
</release-item-contributor-list>
<p>Fix instances where <id>database-id</id> was not rendered as an integer in JSON info output.</p>
</release-item>
</release-bug-list>
<release-refactor-list>
+2 -2
View File
@@ -502,7 +502,7 @@ sub backupList
{
my $oDbHash =
{
&INFO_HISTORY_ID => $iHistoryId,
&INFO_HISTORY_ID => $iHistoryId + 0,
&INFO_DB_VERSION =>
$oBackupInfo->get(INFO_BACKUP_SECTION_DB_HISTORY, $iHistoryId, INFO_BACKUP_KEY_DB_VERSION),
&INFO_SYSTEM_ID =>
@@ -660,7 +660,7 @@ sub dbArchiveSection
&INFO_KEY_MAX => $strArchiveStop,
&INFO_SECTION_DB =>
{
&INFO_HISTORY_ID => $hDbInfo->{&INFO_HISTORY_ID},
&INFO_HISTORY_ID => $hDbInfo->{&INFO_HISTORY_ID} + 0,
},
};
}
+4 -4
View File
@@ -3680,7 +3680,7 @@ info db stanza - normal output (db-master host)
"archive" : [
{
"database" : {
"id" : "1"
"id" : 1
},
"id" : "9.4-1",
"max" : null,
@@ -3939,7 +3939,7 @@ info db stanza - normal output (db-master host)
],
"db" : [
{
"id" : "1",
"id" : 1,
"system-id" : 6353949018581704918,
"version" : "9.4"
}
@@ -4298,7 +4298,7 @@ info all stanzas - normal output (db-master host)
"archive" : [
{
"database" : {
"id" : "1"
"id" : 1
},
"id" : "9.4-1",
"max" : null,
@@ -4369,7 +4369,7 @@ info all stanzas - normal output (db-master host)
],
"db" : [
{
"id" : "1",
"id" : 1,
"system-id" : 6353949018581704918,
"version" : "9.4"
}
+4 -4
View File
@@ -3915,7 +3915,7 @@ info db stanza - normal output (backup host)
"archive" : [
{
"database" : {
"id" : "1"
"id" : 1
},
"id" : "9.4-1",
"max" : null,
@@ -4174,7 +4174,7 @@ info db stanza - normal output (backup host)
],
"db" : [
{
"id" : "1",
"id" : 1,
"system-id" : 6353949018581704918,
"version" : "9.4"
}
@@ -4549,7 +4549,7 @@ info all stanzas - normal output (db-master host)
"archive" : [
{
"database" : {
"id" : "1"
"id" : 1
},
"id" : "9.4-1",
"max" : null,
@@ -4620,7 +4620,7 @@ info all stanzas - normal output (db-master host)
],
"db" : [
{
"id" : "1",
"id" : 1,
"system-id" : 6353949018581704918,
"version" : "9.4"
}
+4 -4
View File
@@ -2374,7 +2374,7 @@ info db stanza - normal output (backup host)
"archive" : [
{
"database" : {
"id" : "1"
"id" : 1
},
"id" : "9.4-1",
"max" : null,
@@ -2633,7 +2633,7 @@ info db stanza - normal output (backup host)
],
"db" : [
{
"id" : "1",
"id" : 1,
"system-id" : 6353949018581704918,
"version" : "9.4"
}
@@ -2898,7 +2898,7 @@ info all stanzas - normal output (db-master host)
"archive" : [
{
"database" : {
"id" : "1"
"id" : 1
},
"id" : "9.4-1",
"max" : null,
@@ -2969,7 +2969,7 @@ info all stanzas - normal output (db-master host)
],
"db" : [
{
"id" : "1",
"id" : 1,
"system-id" : 6353949018581704918,
"version" : "9.4"
}
+4 -4
View File
@@ -847,7 +847,7 @@ info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
"archive" : [
{
"database" : {
"id" : "1"
"id" : 1
},
"id" : "9.4-2",
"max" : "000000010000000100000001",
@@ -855,7 +855,7 @@ info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
},
{
"database" : {
"id" : "2"
"id" : 2
},
"id" : "9.5-4",
"max" : "000000010000000100000001",
@@ -924,12 +924,12 @@ info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
],
"db" : [
{
"id" : "1",
"id" : 1,
"system-id" : 6353949018581704918,
"version" : "9.4"
},
{
"id" : "2",
"id" : 2,
"system-id" : 6392579261579036436,
"version" : "9.5"
}
+4 -4
View File
@@ -889,7 +889,7 @@ info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
"archive" : [
{
"database" : {
"id" : "1"
"id" : 1
},
"id" : "9.4-2",
"max" : "000000010000000100000001",
@@ -897,7 +897,7 @@ info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
},
{
"database" : {
"id" : "2"
"id" : 2
},
"id" : "9.5-4",
"max" : "000000010000000100000001",
@@ -966,12 +966,12 @@ info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
],
"db" : [
{
"id" : "1",
"id" : 1,
"system-id" : 6353949018581704918,
"version" : "9.4"
},
{
"id" : "2",
"id" : 2,
"system-id" : 6392579261579036436,
"version" : "9.5"
}
+4 -4
View File
@@ -832,7 +832,7 @@ info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
"archive" : [
{
"database" : {
"id" : "1"
"id" : 1
},
"id" : "9.4-2",
"max" : "000000010000000100000001",
@@ -840,7 +840,7 @@ info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
},
{
"database" : {
"id" : "2"
"id" : 2
},
"id" : "9.5-4",
"max" : "000000010000000100000001",
@@ -909,12 +909,12 @@ info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
],
"db" : [
{
"id" : "1",
"id" : 1,
"system-id" : 6353949018581704918,
"version" : "9.4"
},
{
"id" : "2",
"id" : 2,
"system-id" : 6392579261579036436,
"version" : "9.5"
}