/[Apache-SVN]
ViewVC logotype

Revision 165645


Jump to revision: Previous Next
Author: mikem
Date: Mon May 2 15:51:48 2005 UTC (19 years ago)
Changed paths: 1
Log Message:
committing this patch for DERBY-235 for suresh.thalamati@gmail.com

Problem was service name on database creation  was getting just set to the canonical name of the database directory
without subsub protocol name added in the beginning. Whereas rest of the system seems to expect that the
subsub protocol name  also is part of the  service  name.  For example if "csf" is  subprotocol name ,
service name should be  "csf:C:\suresht\databases\wombat1" not just "C:\suresht\databases\wombat1".
Attached diff fixes the problem by  prefixing the subsub protocol name  to the canonical name, to generate
the service name in the case of create also.

This was not an issue with default "directory"  subsub protocol because the system consistently generates
the service name as just the canonical name of  the service root.

Another doubt I had while fixing this issue why we generate the service name after creating the service root,
my guess is because of the following comment in the java docs for java.io.File.getCanonicalPath() method:
" Every pathname that denotes an existing file or directory has a unique canonical form. Every pathname that
denotes a nonexistent file or directory also has a unique canonical form. The canonical form of the pathname of a
nonexistent file or directory may be different  from the canonical form of the same pathname after the file or
directory is created. Similarly, the canonical form of the pathname of an existing file or directory may be different from the
canonical form of the same pathname after the file or directory is deleted.
" 



Changed paths

Path Details
Directoryincubator/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/PersistentServiceImpl.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26