Skip site navigation (1) Skip section navigation (2)

Re: Fix overflow of bgwriter's request queue

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: Fix overflow of bgwriter's request queue
Date: 2006-01-13 06:48:24
Message-ID: dq7idc$30g7$1@news.hub.org (view raw or flat)
Thread:
Lists: pgsql-patches
"ITAGAKI Takahiro" <itagaki(dot)takahiro(at)lab(dot)ntt(dot)co(dot)jp> wrote
>
> Attached is a patch that fixes overflow of bgwriter's file-fsync request 
> queue.
>

   while ((entry = (PendingOperationEntry *) hash_seq_search(&hstat)) != 
NULL)
   {
+   if (i >= count)
+    elog(ERROR, "pendingOpsTable corrupted");
+
+   memcpy(&entries[i++], entry, sizeof(PendingOperationEntry));
+
+   if (hash_search(pendingOpsTable, entry,
+       HASH_REMOVE, NULL) == NULL)
+    elog(ERROR, "pendingOpsTable corrupted");
+  }

What's the rationale of this change?

Regards,
Qingqing 



In response to

Responses

pgsql-patches by date

Next:From: ITAGAKI TakahiroDate: 2006-01-13 07:04:00
Subject: Re: Fix overflow of bgwriter's request queue
Previous:From: ITAGAKI TakahiroDate: 2006-01-13 04:48:12
Subject: Fix overflow of bgwriter's request queue

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group