git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add svnrdump

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jul 9, 2010, 13:46 UTC
Message-ID
<20100709134600.GD12315@debian>
In-Reply-To
<002d01cb1e7f$e0ff03c0$a2fd0b40$@nl>
Hi,
Bert Huijben writes:
Show 11 quoted lines
> > +  /* Cleanup */
> > +  SVN_ERR(svn_io_file_close(hb->temp_file, hb->pool));
> > +  SVN_ERR(svn_stream_close(hb->temp_filestream));
> 
> The standard handler already closes the stream for you and if you don't
> disown the file on mapping, this also closes the file.
> 
> > +  svn_pool_destroy(hb->pool);
> 
> And as you clear the pool that contains the file and stream here, closing
> yourself is not necessary.

I realize this, but I closed the stream anyway to make debugging easier. The pool is only destroyed much later. Do you think this is bad policy?

-- Ram
Previous: Ramkumar Ramachandra
Message 11 of 11 in “Add svnrdump”
  1. Add svnrdumpRamkumar Ramachandra, Jul 8, 2010
  2. Bert HuijbenJul 8, 2010
  3. Daniel ShahafJul 8, 2010
  4. Blair ZajacJul 9, 2010
  5. Michael J GruberJul 9, 2010
  6. Sverre RabbelierJul 9, 2010
  7. Junio C HamanoJul 9, 2010
  8. Ramkumar RamachandraJul 9, 2010
  9. Ramkumar RamachandraJul 9, 2010
  10. Ramkumar RamachandraJul 9, 2010
  11. Ramkumar RamachandraJul 9, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.