Improve code comments in b0eaa4c51b.
authorAmit Kapila <[email protected]>
Sat, 16 Mar 2019 01:25:56 +0000 (06:55 +0530)
committerAmit Kapila <[email protected]>
Sat, 16 Mar 2019 01:25:56 +0000 (06:55 +0530)
Author: John Naylor
Discussion: https://postgr.es/m/CACPNZCswjyGJxTT=mxHgK=Z=mJ9uJ4WEx_UO=bNwpR_i0EaHHg@mail.gmail.com

src/backend/storage/freespace/freespace.c

index 849685f5a074ee6ab4e55d9671471362c8526b61..c3ed4242e2df164e43739009f6fd97329329fbf9 100644 (file)
@@ -198,7 +198,7 @@ GetPageWithFreeSpace(Relation rel, Size spaceNeeded, bool check_fsm_only)
        }
        else if (nblocks > 0)
        {
-           /* Create or update local map and get first candidate block. */
+           /* Initialize local map and get first candidate block. */
            fsm_local_set(rel, nblocks);
            target_block = fsm_local_search();
        }
@@ -1119,8 +1119,7 @@ fsm_allow_writes(Relation rel, BlockNumber heapblk,
 }
 
 /*
- * Initialize or update the local map of blocks to try, for when there is
- * no FSM.
+ * Initialize the local map of blocks to try, for when there is no FSM.
  *
  * When we initialize the map, the whole heap is potentially available to
  * try.  Testing revealed that trying every block can cause a small