trivial refactoring of WaitOnLock

From: Neil Conway <neilc(at)samurai(dot)com>
To: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: trivial refactoring of WaitOnLock
Date: 2005-03-09 00:09:16
Message-ID: 422E3EAC.9000403@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

This patch refactors some code in WaitOnLock slightly. The old code was
slow, and I believe it was off-by-one (it allocates one byte of memory
more than needed).

Barring any objections I'll apply this to HEAD later today.

-Neil

Attachment Content-Type Size
wait_on_lock_refactor-1.patch text/x-patch 1.2 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Mark Kirkwood 2005-03-09 00:49:14 Re: Display Pg buffer cache (WIP)
Previous Message Neil Conway 2005-03-09 00:04:05 Re: fork() refactoring