From 4f6aeb63d380f726b185bc25db1e50093b3119b3 Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Fri, 19 Oct 2012 01:03:00 -0400 Subject: Further reduce extended attribute reads/writes More refactoring towards reducing the number of extended attribute reads/writes to the file system. See BZ 868120: http://bugzilla.redhat.com/show_bug.cgi?id=868120 Basically the redundant routines restore_object, restore_account and restore_container have been collapsed to one routine, restore_metadata, which will only write out metadata if the new metadata is different from what was originally read. Along with these changes come a set of unit tests for all the functions related to the routines that are in this module in the call tree where restore_metadata is invoked. Change-Id: I957ee2f8646cbe6df4d4420d3bdfb1f6ac62bdd2 BUG: 868120 Signed-off-by: Peter Portante Reviewed-on: http://review.gluster.org/4111 Reviewed-by: Kaleb KEITHLEY Reviewed-by: Jeff Darcy Tested-by: Anand Avati --- .unittests | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.unittests') diff --git a/.unittests b/.unittests index 5be925d5829..d13fd45a368 100755 --- a/.unittests +++ b/.unittests @@ -1,6 +1,5 @@ #!/bin/bash -cd swift/1.4.8/test/unit -nosetests --exe --with-coverage --cover-package plugins --cover-erase $@ -rm -f .coverage +cd swift/1.4.8/ +./.unittests cd - -- cgit