[Date Prev][Date Next]
Repairing a lmdb database
- To: email@example.com
- Subject: Repairing a lmdb database
- From: Tim Uckun <firstname.lastname@example.org>
- Date: Mon, 21 Nov 2016 16:18:18 +1300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ZixIw9s82OwAQuiPc/rcWO2wc8DQ8GIFOAxL5jUJUIM=; b=RWtewEGQNJaslFPO5lNaBq4tNpUCwmQLOG97BWgcklqOwUlE8n2pFkFpuekfLLVzHn 5yo5sww3q69SGCJr0J+PCej65zYrt63kGyM9Th9Ep3EO66YZ5hG8TEAAt+abhr+CPJYo atuGSVKunDn7qH1jpbs7tWZvxi6Wrov7j8lmpBNrnlICmN1kf/+05qLF5t45dx584ZvB pQlwNx3gYE+zWSvY8wbmO17H5eo/CIVJLwpN6Zc9n0rHYb0DZ2WfwfrCqOgefMu+f3nt gknKxWvvIuqE6LayuKvXuVHwKev6wZhpfEIUgeInb4Svn2iLTa1CrtvgCUSDxD/tarcP /45A==
I am writing a wrapper for Lmdb for the Crystal language. During the process of writing my code started hanging when attempting to open a transaction. At first I thought I was calling the C functions wrong but it turned out to be some sort of a corruption in the database itself. I deleted the database directory and the code started working fine again.
At this point all my code did was to open an environment, set some parameters (max readers and such) and some flags (specifically NO_TLS). I had not attempted to open a database yet as I need a transaction to open a database. I am a little worried that the database caused a hang like this but I will go forward and continue to write the wrapper and see if it happens again.
Does anybody have any clues as to why the environment could have corrupted like this? What do I do if it happens again?