Re: Fix overflow of bgwriter's request queue

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: Fix overflow of bgwriter's request queue
Дата
Msg-id dq7idc$30g7$1@news.hub.org
обсуждение исходный текст
Ответ на Fix overflow of bgwriter's request queue  (ITAGAKI Takahiro <itagaki.takahiro@lab.ntt.co.jp>)
Ответы Re: Fix overflow of bgwriter's request queue
Список pgsql-patches
"ITAGAKI Takahiro" <itagaki.takahiro@lab.ntt.co.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



В списке pgsql-patches по дате отправления:

Предыдущее
От: ITAGAKI Takahiro
Дата:
Сообщение: Fix overflow of bgwriter's request queue
Следующее
От: ITAGAKI Takahiro
Дата:
Сообщение: Re: Fix overflow of bgwriter's request queue