diff options
author | Tom Lane | 1999-05-31 23:48:04 +0000 |
---|---|---|
committer | Tom Lane | 1999-05-31 23:48:04 +0000 |
commit | 185b4272844970a9e1b46eb3d1d16d4e5ecca939 (patch) | |
tree | 9bfdfa7e5323f5bcf0ecc8a357fb737dd4821bf0 /src/include/lib/dllist.h | |
parent | 2a44383a2d38ac4655e419cb8c2c654efe960285 (diff) |
Fix some latent bugs in dllist.c (carelessness about setting
all fields that should be set). Add a MoveToFront primitive to speed up
one of the hotspots in SearchSysCache.
Diffstat (limited to 'src/include/lib/dllist.h')
-rw-r--r-- | src/include/lib/dllist.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/lib/dllist.h b/src/include/lib/dllist.h index 7c3707afcab..a367450185c 100644 --- a/src/include/lib/dllist.h +++ b/src/include/lib/dllist.h @@ -26,7 +26,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: dllist.h,v 1.9 1999/02/13 23:21:30 momjian Exp $ + * $Id: dllist.h,v 1.10 1999/05/31 23:48:03 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -66,6 +66,7 @@ extern void DLRemove(Dlelem *); /* removes node from list */ extern void DLAddHead(Dllist *list, Dlelem *node); extern void DLAddTail(Dllist *list, Dlelem *node); extern Dlelem *DLRemHead(Dllist *list); /* remove and return the head */ +extern void DLMoveToFront(Dlelem *); /* move node to front of its list */ #define DLE_VAL(x) (x->dle_val) |