Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
c5b06aaa
Commit
c5b06aaa
authored
Jun 24, 2019
by
Xia Li
Committed by
Nixon Rodrigues
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3134 Change Date.getTime() to System.currentTimeMillis() for better performance
parent
1d2aad52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
AtlasTypeDefGraphStoreV2.java
...s/repository/store/graph/v2/AtlasTypeDefGraphStoreV2.java
+1
-2
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasTypeDefGraphStoreV2.java
View file @
c5b06aaa
...
@@ -525,12 +525,11 @@ public class AtlasTypeDefGraphStoreV2 extends AtlasTypeDefGraphStore {
...
@@ -525,12 +525,11 @@ public class AtlasTypeDefGraphStoreV2 extends AtlasTypeDefGraphStore {
* increment the version value for this vertex
* increment the version value for this vertex
*/
*/
private
void
markVertexUpdated
(
AtlasVertex
vertex
)
{
private
void
markVertexUpdated
(
AtlasVertex
vertex
)
{
Date
now
=
new
Date
();
Number
currVersion
=
vertex
.
getProperty
(
Constants
.
VERSION_PROPERTY_KEY
,
Number
.
class
);
Number
currVersion
=
vertex
.
getProperty
(
Constants
.
VERSION_PROPERTY_KEY
,
Number
.
class
);
long
newVersion
=
currVersion
==
null
?
1
:
(
currVersion
.
longValue
()
+
1
);
long
newVersion
=
currVersion
==
null
?
1
:
(
currVersion
.
longValue
()
+
1
);
vertex
.
setProperty
(
Constants
.
MODIFIED_BY_KEY
,
getCurrentUser
());
vertex
.
setProperty
(
Constants
.
MODIFIED_BY_KEY
,
getCurrentUser
());
vertex
.
setProperty
(
Constants
.
MODIFICATION_TIMESTAMP_PROPERTY_KEY
,
now
.
getTime
());
vertex
.
setProperty
(
Constants
.
MODIFICATION_TIMESTAMP_PROPERTY_KEY
,
System
.
currentTimeMillis
());
vertex
.
setProperty
(
Constants
.
VERSION_PROPERTY_KEY
,
newVersion
);
vertex
.
setProperty
(
Constants
.
VERSION_PROPERTY_KEY
,
newVersion
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment