Issue Details (XML | Word | Printable)

Key: DERBY-3421
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Kristian Waagan
Reporter: Kristian Waagan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Remove unused code for caching of connect bytes

Created: 15/Feb/08 02:23 PM   Updated: 26/Apr/08 03:37 PM
Return to search
Component/s: Network Client
Affects Version/s: 10.3.2.1, 10.4.1.3
Fix Version/s: 10.3.3.0, 10.4.1.3

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works derby-3421-1a-removal.diff 2008-02-15 03:36 PM Kristian Waagan 10 kB
Text File Licensed for inclusion in ASF works derby-3421-1a-removal.stat 2008-02-15 03:36 PM Kristian Waagan 0.1 kB
File Licensed for inclusion in ASF works derby-3421-1b-removal.diff 2008-02-18 10:54 AM Kristian Waagan 11 kB
Text File Licensed for inclusion in ASF works derby-3421-1b-removal.stat 2008-02-18 10:54 AM Kristian Waagan 0.2 kB
Issue Links:
dependent
 

Resolution Date: 18/Feb/08 10:57 AM


 Description  « Hide
The client driver has code for caching connect bytes, but it is not used.
This unused code clutters the rest of the code and makes it harder to understand.

Secondly, the variable used to determine if the cached connect bytes can be used is public in am.Connection.

If someone has historic information about this feature, it would be nice if they could add the information to this Jira.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Kristian Waagan added a comment - 15/Feb/08 03:36 PM
'derby-3421-1a-removal.diff' removes the code related to caching of connect bytes.
I'm running tests for good measure.

If someone think this is an important feature, please create a new Jira for enabling it and close this one as invalid.
I will wait for a little while before I commit the patch.


thanks,

Kristian Waagan added a comment - 16/Feb/08 11:51 AM
Tests ran fine with the patch applied (Solaris 10, Sun JDK 1.6).

Knut Anders Hatlen added a comment - 16/Feb/08 03:47 PM
+1 to commit. It doesn't sound like an important feature, and if someone thinks it is, they can always get the code back from svn and do what it takes to enable it. Since it's not used now, it's better to remove it so that the code is easier to understand.

I think you can also remove NetConnectionReply.verifyDeferredReset() since you removed the only code that calls it.

Kristian Waagan added a comment - 18/Feb/08 10:54 AM
Thanks for catching the other method that can be removed Knut Anders.

'derby-3421-1b-removal.diff' removes NetConnectionReply.verifyDeferredReset as well, nothing else is changed.

Kristian Waagan added a comment - 18/Feb/08 10:57 AM
Committed 'derby-3421-1b-removal.diff' to trunk with revision 628679.
I don't expect more work to be done on this issue.

Kathey Marsden added a comment - 26/Apr/08 03:37 PM
Committed revision 651835 to 10.3