Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

async.c

  • Alvaro Herrera's avatar
    09e196e4
    Use callbacks in SlruScanDirectory for the actual action · 09e196e4
    Alvaro Herrera authored
    Previously, the code assumed that the only possible action to take was
    to delete files behind a certain cutoff point.  The async notify code
    was already a crock: it used a different "pagePrecedes" function for
    truncation than for regular operation.  By allowing it to pass a
    callback to SlruScanDirectory it can do cleanly exactly what it needs to
    do.
    
    The clog.c code also had its own use for SlruScanDirectory, which is
    made a bit simpler with this.
    09e196e4
    History
    Use callbacks in SlruScanDirectory for the actual action
    Alvaro Herrera authored
    Previously, the code assumed that the only possible action to take was
    to delete files behind a certain cutoff point.  The async notify code
    was already a crock: it used a different "pagePrecedes" function for
    truncation than for regular operation.  By allowing it to pass a
    callback to SlruScanDirectory it can do cleanly exactly what it needs to
    do.
    
    The clog.c code also had its own use for SlruScanDirectory, which is
    made a bit simpler with this.