]> granicus.if.org Git - postgresql/commitdiff
Fix enum definition.
authorRobert Haas <rhaas@postgresql.org>
Thu, 23 Mar 2017 20:10:43 +0000 (16:10 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 23 Mar 2017 20:10:43 +0000 (16:10 -0400)
Commit 249cf070e36721a65be74838c53acf8249faf935 assigned to one of
the labels in the middle the value that should have been assigned
to the first member of the enum.  Rushabh's patch didn't have that
defect as submitted, but I managed to mess it up while editing.
Repair.

src/include/pgstat.h

index a67524297119576e1670e84cd48938bdf405820d..201562521f7743ff92eae0016e80b3243d572da9 100644 (file)
@@ -816,7 +816,7 @@ typedef enum
  */
 typedef enum
 {
-       WAIT_EVENT_BUFFILE_READ,
+       WAIT_EVENT_BUFFILE_READ = PG_WAIT_IO,
        WAIT_EVENT_BUFFILE_WRITE,
        WAIT_EVENT_CONTROL_FILE_READ,
        WAIT_EVENT_CONTROL_FILE_SYNC,
@@ -829,7 +829,7 @@ typedef enum
        WAIT_EVENT_DATA_FILE_FLUSH,
        WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC,
        WAIT_EVENT_DATA_FILE_PREFETCH,
-       WAIT_EVENT_DATA_FILE_READ = PG_WAIT_IO,
+       WAIT_EVENT_DATA_FILE_READ,
        WAIT_EVENT_DATA_FILE_SYNC,
        WAIT_EVENT_DATA_FILE_TRUNCATE,
        WAIT_EVENT_DATA_FILE_WRITE,